08-20-2022, 11:32 AM | #46 |
Connoisseur
Posts: 95
Karma: 354399
Join Date: Nov 2012
Location: Stockton, NJ
Device: Kobo Sage (Formerly KKB, PW1, PW3, KV, OA3)
|
Instructions for patching firmware 4.33.19759
I find that my configured side loaded header font only works if it is the same as the reading font that I have chosen. If I change the reading font, it reverts to the system default.
|
08-20-2022, 01:42 PM | #47 |
Resident Curmudgeon
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I wonder if the code you could have used in the CSS to embed fonts that live in the fonts directory still works. I'll have to give it a try when I get a chance.
Code:
@font-face { font-family: monospace; font-style: normal; font-weight: normal; src: url("res:///fonts/normal/Dark Courier"); } @font-face { font-family: monospace; font-style: normal; font-weight: bold; src: url("res:///fonts/bold/Dark Courier"); } @font-face { font-family: monospace; font-style: italic; font-weight: normal; src: url("res:///fonts/italic/Dark Courier"); } @font-face { font-family: monospace; font-style: italic; font-weight: bold; src: url("res:///fonts/bolditalic/Dark Courier"); } |
Advert | |
|
08-20-2022, 03:23 PM | #48 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
None of those options has ever worked for kepubs. Pre fw 4.32 it used to be easy in kepubs. If you had a sideloaded "My Great Mono" font all you needed to do was code your book CSS as font-family:"My Great Mono" and the kepub reading app would find the relevant font in your sideloaded fonts directory. No @font-face code required at all. Since fw 4.32 the only way I've found to use a specific mono font in a kepub is to embed it using the usual epub standards for embedding. |
|
08-20-2022, 06:31 PM | #49 | |
Resident Curmudgeon
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
08-21-2022, 02:32 AM | #50 |
Addict
Posts: 214
Karma: 1228988
Join Date: Sep 2019
Location: The Netherlands
Device: Kindle Paperwhite 4, Kobo Libra 2
|
Would downgrading and applying the patch work? Or am I going to encounter all kinds of other issues then?
|
Advert | |
|
08-21-2022, 08:49 AM | #51 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Personally, I'm not a fan of permanently marooning myself on an old fw. The choice about whether to downgrade or not is entirely yours to make. As always, risk vs. reward. You might like to check with someone else about the safest way to do a fw downgrade on your particular Kobo model. I never offer technical advice about downgrading because I don't have enough practical experience of doing it to know if/when there are potential problems to avoid. |
|
08-21-2022, 08:57 AM | #52 | |
Resident Curmudgeon
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
But before doing any firmware install, it's a good idea to copy everything from Kobo to the computer just to be safe. |
|
08-21-2022, 09:04 AM | #53 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Font handling in kepubs has always been completely different. Everything I know about monospace in kepubs I've already written in post #48. |
|
08-21-2022, 11:56 AM | #54 | |
Resident Curmudgeon
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I've done some testing. The code to embed a font in the fonts directory works in ePub. But when I just referenced the font's internal name, it did not work. One thing I did not know. The eBook I was testing has an embedded font referenced with a span. When I changed the weight of the font I has selected in the font menu, the embedded font also has the weight changed. This can be the real embedded font or the embedded font referenced from the fonts directory. As for KePub, you do have to actually embed the font. A couple of things I forgot to test. Does ePub's font-family: monospace; still work for Courier Prime without the need to embed? Does monospace work for kePub or does a monospace font have to be embedded. Last edited by JSWolf; 08-21-2022 at 12:47 PM. |
|
08-21-2022, 12:40 PM | #55 | |||
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Quote:
This is what *I've* already said: Quote:
More generally (unless I've missed something) no sideloaded font can be referenced from within a kepub except when you choose your main font from the [Aa] menu. As an aside, no specific action is required for the generic font-family:sans-serif; to work for both epub and kepub. Both will use the built-in system font Avenir. |
|||
08-21-2022, 05:54 PM | #56 | |
Resident Curmudgeon
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
When I try this in KePub, I get a really small font. Smaller then 1em. It could be Georgia. IMHO, I think if the eBook is using monopsace, use ePub if you have Courier (or a font internally named Courier) in fonts. Otherwise, you'll have to do a full font embed. Even if you don't have Courier in fonts, you can do the pseudo embed (where you can specify the font that lives in fonts) for monospace. So basically, after the font system change, Kobo made KePub worse because using monospace just became more difficult. And if monospace is used, you'll have a basically unreadable (too small) font that's not monospace (I think it's Georgia). A good example of where this will be a problem is in the eBook of Planetfall by Emma Newman. It specifies monospace for text messages. If you load this as KePub, it will have sections of the book that are not readable or hard to read. If it's loaded as ePub and you don't have a Courier font in font's, you'll get the same font as your selected font. This really is a mess for those who do not know the fixes. If someone buys books from Kobo and syncs, any books that specify monospace without any embedded font, will not be happy. So it means that the patch Default ePub monospace font: won't work any more. Last edited by JSWolf; 08-21-2022 at 06:21 PM. |
|
08-23-2022, 04:19 AM | #57 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
08-23-2022, 04:38 AM | #58 | |
Resident Curmudgeon
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Sure, we know what to do. But most won't know what to do or even about removing DRM so they can fix it or even that the eBook needs fixing. |
|
08-23-2022, 06:46 AM | #59 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
08-23-2022, 08:46 AM | #60 | |
Resident Curmudgeon
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
If you want, I can show a screen cap of the monospace problem with KePub. Last edited by JSWolf; 08-23-2022 at 08:52 AM. |
|
Tags |
kobopatch, patch, patch32lsb, patches, patching |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.18.0 | GeoffR | Kobo Developer's Corner | 151 | 10-21-2016 06:15 AM |
Instructions for patching firmware 3.17.3 | GeoffR | Kobo Developer's Corner | 60 | 09-17-2015 05:35 PM |
Instructions for patching firmware 3.17.0 | GeoffR | Kobo Developer's Corner | 49 | 08-16-2015 05:20 AM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 03:40 AM |
Instructions for patching firmware 3.16.0 | GeoffR | Kobo Developer's Corner | 74 | 08-12-2015 02:12 PM |