View Single Post
Old 05-14-2011, 07:39 AM   #14
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@paola,

You have successfully gone the embedded fonts route (item 1 in my list above). It works great, the possible drawback is that every single epub contains the LexiaDaMa .ttf files, which could be a lot of disk space if you've got thousands of books on the reader.

You've already done the brainwork necessary for the "middle ground" option (item 3). The only differences are:
  • you create a /system/fonts directory on your PB and put the LexiaDaMa .ttf files in there rather than in the epub. This way you only copy and store them once on the reader. Then you can stop thinking about it.
  • you've already written the "magic css", its the 4 @font-face statements plus the body {font-family: "LexiaDaMa", serif;}. You just need to make a minor tweak to each @font-face so that:
    Code:
    src: url(../Fonts/LexiaDaMa-BoldItalic.ttf);
    would become:
    Code:
    src: url(res:///mnt/ext1/system/fonts/LexiaDaMa-BoldItalic.ttf);
As you've already seen, you can add the "magic css" to each epub's .css file using Sigil. However, if instead, you add it to your Calibre default preferences ExtraCSS, you can do it once and then forget about it. Every new conversion to epub will put this css into the epub automatically.
jackie_w is offline   Reply With Quote