View Single Post
Old 07-08-2012, 12:57 PM   #1
pirl8
Pest
pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.
 
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
Embedding fonts in AZW3/KF8

I'm trying to convert an ePub containing embedded fonts to AZW3 format, but my Kindle Touch does not find them, while it does if I convert the file via KindleGen.

What i'm doing is:
  1. edit ePub with sigil;
  2. add needed fonts to the "Fonts" subdir. This results in a new line in content.opf file:
    Code:
    "<item href="Fonts/gi.ttf" id="my.ttf" media-type="application/x-font-ttf" />
  3. add @font-face definitions to CSS:
    Code:
    @font-face {
      font-family: "MyFont";
      font-weight: normal;
      font-style: normal;
      src: url(../Fonts/my.ttf);
    }
  4. add Font-Family: MyFont where needed.

Then I save the file and convert it to AZW3 with calibre, but my Kindle (firmware 5.1.0) does not show an option to enable them.

If I process the same file with KindleGen, everything is working fine.

What am I doing wrong?

Last edited by pirl8; 07-08-2012 at 04:20 PM.
pirl8 is offline   Reply With Quote