View Single Post
Old 08-20-2022, 04:23 PM   #48
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,286
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by JSWolf View Post
I wonder if the code you could have used in the CSS to embed fonts that live in the fonts directory still works. I'll have to give it a try when I get a chance.
It still works in epubs if you want to apply it per book. However, for epubs, it's always been more convenient to use the patch in librmsdk.so.1.0.0.yaml to achieve the same thing at system level, i.e. if you change your mind about which default mono font you want you wouldn't need to resend the books. Or, even easier, just sideload a font named Courier-something and you don't need patches or special CSS.

None of those options has ever worked for kepubs.

Pre fw 4.32 it used to be easy in kepubs. If you had a sideloaded "My Great Mono" font all you needed to do was code your book CSS as font-family:"My Great Mono" and the kepub reading app would find the relevant font in your sideloaded fonts directory. No @font-face code required at all.

Since fw 4.32 the only way I've found to use a specific mono font in a kepub is to embed it using the usual epub standards for embedding.
jackie_w is offline   Reply With Quote