View Single Post
Old 12-23-2012, 01:01 PM   #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
@xuyn2003 & hubertphava,

I can get any font I want to display as long as I embed it inside the epub, which (if I'm not mistaken) is the method hubertphava is describing.

I've had no success at all typing something in the epub css file in an attempt to directly reference a font stored in the Kobo /fonts directory. I've tried both xuyn2003's and tshering's suggestions and neither work for me with fw 2.1.5.

In case anyone is interested I'll share a few other things that I found out.
  • For a sideloaded epub (see attached image sorry for my poor camera skills)
    Code:
    epub css style              displayed font
    --------------              ---------------
    no font-family specified    font selected from font list
    font-family: serif          built-in "Document Default" (Georgia)
    font-family: sans-serif     built-in "Avenir"
    font-family: monospace      font selected from font list
  • For a pseudo-kepub, i.e same sideloaded epub renamed to .kepub.epub
    Code:
    epub css style              displayed font
    --------------              ---------------
    no font-family specified    font selected from font list
    font-family: serif          font selected from font list
    font-family: sans-serif     font selected from font list
    font-family: monospace      font selected from font list

An accidental outcome is that for those people who would like to read with sans-serif font Avenir but don't because all italics are displayed instead as bold... If you add font-family: sans-serif; to your body css you should get the whole book displayed in Avenir with all italics, bold and bolditalics displayed correctly. If you look at line 3 in the attached image you can see this for yourself.
Attached Thumbnails
Click image for larger version

Name:	kobofont.jpg
Views:	372
Size:	44.5 KB
ID:	98119  
jackie_w is offline   Reply With Quote