06-21-2021, 01:56 PM | #1 |
Addict
Posts: 285
Karma: 3762916
Join Date: Nov 2011
Device: none
|
Changing the size of the monospace font?
KOReader automatically falls back to a font it considers monospace (which on stock would be DroidSansMono).
This makes it distracting to read files that contain a mix of monospace and non-monospace text (for example, programming books), if the default size of the monospace font is significantly larger/smaller than the non-monospace font. Any way to change the size of the monospace font? |
06-21-2021, 01:57 PM | #2 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
|
Advert | |
|
06-21-2021, 11:43 PM | #3 | |
Addict
Posts: 285
Karma: 3762916
Join Date: Nov 2011
Device: none
|
Quote:
It's not difficult to set a new monospace font (by adding a new file into that directory and hoping KOReader selects it as "the" monospace font). However, matching the size to your currently-used non-monospaced font is a hassle. Also, once KOReader has loaded, the monospaced font is not user-changeable. |
|
07-04-2021, 09:02 AM | #4 |
Addict
Posts: 285
Karma: 3762916
Join Date: Nov 2011
Device: none
|
So just a thought, would something like this be possible with custom CSS? For example, by setting the default font size of monospace text to something smaller.
Unfortunately, I know very little CSS. |
07-04-2021, 10:48 AM | #5 |
Wizard
Posts: 1,617
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
If the problem you're talking about is caused by the CSS in the book (and since you're talking about size, chances are it's the book saying the code should be larger/smaller), then you can definitely override it with a style tweak. Of course you can still try to work around whatever you're talking about if that's not the cause, but it's rather hard to say without any examples.
|
Advert | |
|
07-04-2021, 02:49 PM | #6 | |
Addict
Posts: 285
Karma: 3762916
Join Date: Nov 2011
Device: none
|
Quote:
|
|
07-12-2021, 02:22 AM | #7 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Can't you choose a monopsace and a sans-serif font that are similar in size?
|
07-12-2021, 10:16 PM | #8 |
Addict
Posts: 285
Karma: 3762916
Join Date: Nov 2011
Device: none
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem changing font size using font size key | Waylander | Conversion | 0 | 10-02-2013 03:30 PM |
* to Mobi: setting monospace font size | Starko | Conversion | 7 | 11-16-2012 03:04 PM |
Troubleshooting Font size changing | Kumabjorn | Amazon Kindle | 1 | 07-23-2010 12:49 AM |
DR1000 Changing Font-Size | ThR | iRex | 6 | 06-21-2010 06:29 AM |
Changing lrf font size | Oletros | Sony Reader | 11 | 03-19-2008 07:10 PM |