View Single Post
Old 08-20-2022, 06:31 PM   #49
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,228
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
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.
That code was from when we needed to embed a font for monospace. I do have Courier New installed in fonts. Does that work with KePub? I'm currently unable to test this until tomorrow.
JSWolf is offline   Reply With Quote