@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.