07-08-2019, 04:56 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jul 2019
Device: Kobo Forma
|
Monospace Fonts on Kobo Forma
Hi all, I know this is a common problem, but I've spent a week and a half trying to follow the instructions on other posts to get monospaced fonts working on my Kobo Forma and it's just not working.
I've successfully installed patched firmware, I see the various Courier fonts I've installed as options in the fonts menu, and I've tried modifying the CSS via Calibre, but no matter what I do, I can't get monospaced fonts to work. Since the primary use is to read programming books for work, this is frustrating to say the least. It works in plato, but not in the main reader. Any help? |
07-08-2019, 05:48 PM | #2 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Is your book kepub or standard epub by the time it arrives on the Forma?
Which patch(es) have you enabled? Post the patch code you used. What does the book's HTML and CSS look like for a typical program code snippet? |
Advert | |
|
07-08-2019, 09:35 PM | #3 | |
Bibliophagist
Posts: 39,828
Karma: 154147706
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
As jackie_w asked, are you sending the books to your Kobo as epub or kepub? In the librmsdk.so.0.0.1 yaml file, you can enable the Default ePub monospace font (Courier) patch which will then use your sideloaded monospaced file as the default. Alternate fonts will work but you may have to play games with the font names to fit into the maximum 7 characters for the font names. I used to use a sideloaded font with CSS to use a monospaced font but the above patch allows to to simply refer to monospace/code in the CSS. Code:
@font-face { font-family: monospace; font-weight: normal; font-style: normal; src: url('res:///fonts/normal/Dark Courier'); } @font-face { font-family: monospace; font-weight: normal; font-style: italic; src: url('res:///fonts/italic/Dark Courier'); } @font-face { font-family: monospace; font-weight: bold; font-style: normal; src: url('res:///fonts/bold/Dark Courier'); } @font-face { font-family: monospace; font-weight: bold; font-style: italic; src: url('res:///fonts/bolditalic/Dark Courier'); } code { font-family: "Dark Courier", monospace; } Last edited by DNSB; 07-08-2019 at 09:39 PM. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Alternative to Kobo Forma | Paeminem | Which one should I buy? | 2 | 06-11-2019 04:54 AM |
Kobo Forma vs Kobo Aura One use with large library | Jade Aislin | Which one should I buy? | 2 | 05-31-2019 12:14 PM |
Aura ONE How to move database from Kobo Aura One to Kobo Forma | codychan | Kobo Reader | 1 | 11-07-2018 05:56 AM |
Kobo Forma not being recognized | Barcey | Devices | 2 | 10-19-2018 10:45 AM |
Does the PRS-505 support monospace fonts? | Halo | Which one should I buy? | 1 | 11-21-2008 03:47 AM |