Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 07-08-2019, 04:56 PM   #1
danabrams
Junior Member
danabrams began at the beginning.
 
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?
danabrams is offline   Reply With Quote
Old 07-08-2019, 05:48 PM   #2
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,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?
jackie_w is offline   Reply With Quote
Advert
Old 07-08-2019, 09:35 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 39,828
Karma: 154147706
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by danabrams View Post
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?
I'm going to assume that you have removed any font overrides from your CSS in the ebooks since they can and will keep font substitution from working.

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.
DNSB is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 12:04 PM.


MobileRead.com is a privately owned, operated and funded community.