Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 09:20 AM   #1
rs37982
Junior Member
rs37982 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara BW (2024)
Trying to enable "Un-Force user font-family in KePubs" patch, need help

Hi all! I just got a Kobo Clara BW (2024), and I would like to patch it so that embedded non-body text (like chapter headings, titles, text messages, article excerpts, etc.) are not overridden when I change the font. It seems the only way to see publisher embedded fonts is to set it to 'Publisher Default', however the body font defaults to Rakuten Serif.

I went down a rabbit hole here and seems there's a patch where you can enable the setting "Un-Force user font-family in KePubs", but it appears this patch doesn't working for the latest firmware?

What I've tried so far:

1. Downloaded latest firmware "kobo-update-4.45.23697.zip", extracted zip, copied files into .kobo folder, updated device
2. Downloaded patch file "kobopatch_4.45.23697_v3.zip" from this forum, extracted zip, copied the kobo-update zip file into the src folder in the patch folder
3. Opened "libnickel.so.1.0.0.patch" and changed 'Enabled: no' to 'Enabled: yes' under "Un-Force user font-family in KePubs"
4. Run "kobopatch.bat" - find "KoboRoot.tgz" file in out folder, copy to .kobo folder in device, update device.

I might be doing something wrong, but this isn't working on this firmware. I noticed when I opened the kobopatch.yaml file that the 'Un-Force user font-family in KePubs' patch is listed under 'Does not work' for this firmware/patch version, so I'm assuming it no longer works. Do I have to use an older firmware number to enable this?

My other question is that this particular patch has multiple settings or Alternatives 1-3 -- how do you choose which alternative setting you want to use? I read the readme files but it was confusing to me. I'm new to this, but I really appreciate everyone's help!
rs37982 is offline   Reply With Quote
Old Yesterday, 09:29 AM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,263
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
I don't know about it not working on the latest firmware, as both my Kobos are on an older version, but as to your other question, I use the alternative 3. But then I also remove the embedded body font from the book css, if there is one, so none of my ebooks have a publisher-defined font for general text. You might want to experiment with different alternatives, to find the one that suits you.
Sirtel is offline   Reply With Quote
Advert
Old Yesterday, 09:56 AM   #3
rs37982
Junior Member
rs37982 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara BW (2024)
Thanks for the reply! I guess I should be more clear, I meant how do you set/toggle the alternative settings? Is it a modification within the text files? That part wasn't clear to me.

Anyways, not sure if it works on this firmware version anyway - when I ran the kobopatch.bat, the log generated showed "SKIP" next to this particular patch. Not sure if I want to revert to an older firmware for this, but will see if there's anything else I can try.
rs37982 is offline   Reply With Quote
Old Yesterday, 10:36 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 83,750
Karma: 153649587
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You are doing the patches incorrectly. Leave the yaml file in the src directory alone. Do not use any of them to enable the patches. It won't work. Leave them all set to no. You need to use kobopatch.yaml to select which patches you want to enable.

Change the no to a Yes in kobopatch.yaml for Un-Force user font-family in KePubs in kobopatch.yaml.

Last edited by JSWolf; Yesterday at 10:38 AM.
JSWolf is offline   Reply With Quote
Old Yesterday, 10:43 AM   #5
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,263
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by rs37982 View Post
Thanks for the reply! I guess I should be more clear, I meant how do you set/toggle the alternative settings? Is it a modification within the text files? That part wasn't clear to me.
Yes. Remove the # signs from the lines in the ReplaceString section relevant to the alternative you want to use.
Attached Thumbnails
Click image for larger version

Name:	16-06-2026 17-35-31.png
Views:	15
Size:	474.3 KB
ID:	223913  
Sirtel is offline   Reply With Quote
Advert
Old Yesterday, 10:44 AM   #6
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,263
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by JSWolf View Post
You are doing the patches incorrectly. Leave the yaml file in the src directory alone. Do not use any of them to enable the patches. It won't work. Leave them all set to no. You need to use kobopatch.yaml to select which patches you want to enable.

Change the no to a Yes in kobopatch.yaml for Un-Force user font-family in KePubs in kobopatch.yaml.
You also need to modify the yaml file in the src directory with this patch, else it won't work. There are alternative versions you must select there.
Sirtel is offline   Reply With Quote
Old Yesterday, 02:09 PM   #7
rs37982
Junior Member
rs37982 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara BW (2024)
Thank you both, I was able to figure it out and apply the patch successfully!

Unfortunately, this seems to have uncovered a new issue for a small number of epubs where the publisher default font is overriding the selected Kobo device font for the main body text. Is there a guide on here that can help me modify the CSS to "un-fix" the publisher fonts for regular body text only, but keep it for headers/special text?
rs37982 is offline   Reply With Quote
Old Yesterday, 02:43 PM   #8
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,263
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by rs37982 View Post
Thank you both, I was able to figure it out and apply the patch successfully!

Unfortunately, this seems to have uncovered a new issue for a small number of epubs where the publisher default font is overriding the selected Kobo device font for the main body text. Is there a guide on here that can help me modify the CSS to "un-fix" the publisher fonts for regular body text only, but keep it for headers/special text?
No, because the only way to do that reliably is manual. And there is no one fixed way manually either, because the css can differ wildly between books.

Open the epub in the calibre editor. On the far right is the display panel, which shows how the text looks in the viewer; on the far left are the files in the book, both html (text) and css (style). In the middle is the panel that shows what styles are used in the text. Select a file on the left, just an ordinary one that shows body text. Then look at what styles are used for paragraphs in the middle panel (p or div) and search for those styles in the css files. The font can be specified at the book level (then it's under body) or it's under that p or div style you just searched for. If you manage to locate the font (font-family), just delete the font-family entry from the css. Look at what changed in the right-hand panel. No changes are saved until you save the file, so you can always go back before that. Just in case, make a backup copy before you start editing.
Sirtel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
font-family: Palatino, Malabar, Merriweather, "Droid Serif", serif; GregTheGrate Editor 2 11-26-2025 11:33 PM
How to download a font "family" to Kobo? Rojofo Kobo Reader 8 08-12-2025 05:17 PM
Add "font-size" and "font-colour" functions to next version of Page Edit? hhtmp88 Sigil 6 08-20-2020 03:09 PM
Patch Un-Force user font-family in KePubs fer1803 Kobo Developer's Corner 3 02-25-2020 03:59 PM
Touch "Publisher default" Font family in Nook Indigo121 Barnes & Noble NOOK 1 03-15-2012 02:19 PM


All times are GMT -4. The time now is 05:23 AM.


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