Quote:
Originally Posted by Havner
Any ideas?
|
I believe the Kobo built-in fonts are obfuscated so overwriting the .ttf files with your own versions is probably not an option.
I'm not sure how helpful the following will be for you, but I'll outline how I solved this problem for kepubs on my own devices.
With kepubs there's no need to add extra @font-face statements. Simply changing the internal CSS files so that any instances of the generic
Code:
font-family: sans-serif;
font-family: monospace;
are changed to:
Code:
font-family: "my sideloaded sans-serif font name";
font-family: "my sideloaded monospace font name";
will do the trick. How and where you make these changes is the problem to be solved.
In my case I added an extra feature to my forked version of the KoboTouchExtended plugin so that the internal CSS files are changed on-the-fly during the calibre send-to-device process. This allowed me to leave my calibre library master copies untouched and only make the CSS changes when the book is delivered to the Kobo as a kepub.
FWIW I use a similar technique to make sure font-variant:small-caps is converted to CSS code which will display a sideloaded true small-caps font for both kepubs and epubs, although the technique for each format is slightly different.
Maybe someone else can come up with a simpler idea which doesn't involve programming.