Thread: Kobo Bug thread
View Single Post
Old 11-13-2019, 04:55 PM   #1164
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by John F View Post
Just for my own clarification, if I put a proper mono spaced font in the proper font directory, and the book calls for mono spaced font, the mono spaced font will be used?
Not exactly, life's never quite that simple, but that is the first step you'll need to take.

The rest of the workaround/solution is different for kepubs than for epubs. I'm not sure which you use.

For kepub this post has more details. Note: If you're not a kobopatch user miss out step 2, but then you would need to set the Kobo [Aa] font menu to 'Publisher Default' to see the mono font in the book.

For epub the best approach will depend on whether you're also a kobopatch user.
  • If you're not a kobopatch user then look at the monospace @font-faces in at the beginning of this ancient post which tells you how to reference a sideloaded font from the CSS inside an epub. You need to include these @font-faces in every epub which needs a mono font. This is tedious if you do it manually but if you're a calibre user you can use the 'Modify CSS' (with kobo_extra.css) option in the calibre KoboTouch driver to do all the work during calibre send-to-device.
  • If you are a kobopatch user then life becomes much easier. Just enable the patch called 'Default ePub monospace font (Courier)' customised with the name of your sideloaded mono font of choice. Then you won't need to add any @font-faces to your epubs.

Just for completion, embedding a monospace font in the standard way will work for both kepub and epub.

So, in all, that gives 4 different ways to the same visual result. Whether you like any of them may be another story

Last edited by jackie_w; 11-13-2019 at 06:37 PM. Reason: kepub Note:
jackie_w is offline   Reply With Quote