Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-11-2025, 12:57 AM   #1
DarkRogueScribe
Member
DarkRogueScribe began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2025
Device: Kobo Colour
Embedded Fonts

Does anyone know of a way to configure/mod Kobo to use publisher fonts when they are embedded and use the user selected fonts when they are not specified?
I mess around with fonts for fun and they show up just fine on every other device except my Kobo. It's something to do with how it prioritises things but I'm not all too familiar with systems or how to override it.
DarkRogueScribe is offline   Reply With Quote
Old 08-11-2025, 04:16 AM   #2
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: 80,063
Karma: 147983159
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DarkRogueScribe View Post
Does anyone know of a way to configure/mod Kobo to use publisher fonts when they are embedded and use the user selected fonts when they are not specified?
I mess around with fonts for fun and they show up just fine on every other device except my Kobo. It's something to do with how it prioritises things but I'm not all too familiar with systems or how to override it.
There is no way to use publisher font automatically.
JSWolf is online now   Reply With Quote
Old 08-11-2025, 04:49 AM   #3
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: 13,699
Karma: 242197301
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by JSWolf View Post
There is no way to use publisher font automatically.
Eh? Epubs display embedded fonts just fine while using the user font for main text. Kepubs do it with a patch.
Sirtel is offline   Reply With Quote
Old 08-11-2025, 09:47 AM   #4
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: 13,699
Karma: 242197301
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DarkRogueScribe View Post
Does anyone know of a way to configure/mod Kobo to use publisher fonts when they are embedded and use the user selected fonts when they are not specified?
I mess around with fonts for fun and they show up just fine on every other device except my Kobo. It's something to do with how it prioritises things but I'm not all too familiar with systems or how to override it.
Do you use kepubs? Epubs should do it out of the box. For kepubs you need to patch your Kobo (specifically, the patch "Un-force user font family").
Sirtel is offline   Reply With Quote
Old 08-11-2025, 09:52 AM   #5
DarkRogueScribe
Member
DarkRogueScribe began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2025
Device: Kobo Colour
Quote:
Originally Posted by Sirtel View Post
Do you use kepubs? Epubs should do it out of the box. For kepubs you need to patch your Kobo (specifically, the patch "Un-force user font family").
Thanks! can you link where I can get it, please?
DarkRogueScribe is offline   Reply With Quote
Old 08-11-2025, 10:00 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: 13,699
Karma: 242197301
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DarkRogueScribe View Post
Thanks! can you link where I can get it, please?
What firmware is your Kobo on? If the latest, look here:
https://www.mobileread.com/forums//s...d.php?t=366569

Instructions for installing are here:
https://www.mobileread.com/forums/sh...d.php?t=356106
Sirtel is offline   Reply With Quote
Old 08-16-2025, 12:21 PM   #7
DarkRogueScribe
Member
DarkRogueScribe began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2025
Device: Kobo Colour
Quote:
Originally Posted by Sirtel View Post
What firmware is your Kobo on? If the latest, look here:
https://www.mobileread.com/forums//s...d.php?t=366569

Instructions for installing are here:
https://www.mobileread.com/forums/sh...d.php?t=356106
I can't get the un-force user font to work. Looking at the css of the epub, the font changes are part of their own css classes and ids. I can't seem to find the right code changes to have the un-force font work.
DarkRogueScribe is offline   Reply With Quote
Old 08-16-2025, 12:30 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: 13,699
Karma: 242197301
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DarkRogueScribe View Post
I can't get the un-force user font to work. Looking at the css of the epub, the font changes are part of their own css classes and ids. I can't seem to find the right code changes to have the un-force font work.
You'll need to remove the font family from the main text or ordinary paragraphs (depending on the coding; sometimes the font is embedded on the paragraph level, sometimes not) and leave it in place for chapter headings, special sections and the like.
Sirtel is offline   Reply With Quote
Old 08-16-2025, 12:43 PM   #9
DarkRogueScribe
Member
DarkRogueScribe began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2025
Device: Kobo Colour
Quote:
Originally Posted by Sirtel View Post
You'll need to remove the font family from the main text or ordinary paragraphs (depending on the coding; sometimes the font is embedded on the paragraph level, sometimes not) and leave it in place for chapter headings, special sections and the like.
the only time the font-family element is used in the css is on the specific classes and ids. Otherwise it isn't mentioned at all. No other embedded fonts in the epub.
DarkRogueScribe is offline   Reply With Quote
Old 08-16-2025, 12:47 PM   #10
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: 13,699
Karma: 242197301
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DarkRogueScribe View Post
the only time the font-family element is used in the css is on the specific classes and ids. Otherwise it isn't mentioned at all. No other embedded fonts in the epub.
And what specific classes exactly? What are those classes used for?
Sirtel is offline   Reply With Quote
Old 08-16-2025, 01:18 PM   #11
DarkRogueScribe
Member
DarkRogueScribe began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2025
Device: Kobo Colour
Quote:
Originally Posted by Sirtel View Post
And what specific classes exactly? What are those classes used for?
I have a bunch of non-traditionally published epubs and this particular one has two main parts to the story; one is the story itself and the other is a series of journal entries. I've edited it jus so that the journal entries have a different font to differentiate the two by adding a .journal class
DarkRogueScribe is offline   Reply With Quote
Old 08-16-2025, 03:40 PM   #12
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: 13,699
Karma: 242197301
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DarkRogueScribe View Post
I have a bunch of non-traditionally published epubs and this particular one has two main parts to the story; one is the story itself and the other is a series of journal entries. I've edited it jus so that the journal entries have a different font to differentiate the two by adding a .journal class
If you're sure the only embedded font is the one used for journal entries and it displays correctly elsewhere, then...

1) Do other patches work (so we can be sure the problem is not an error in installing the patches)?

2) There are three alternatives for the un-force user font-family patch. Personally I use the third. Try it and comment out the first and the second alternative.
Sirtel is offline   Reply With Quote
Old 08-16-2025, 05:39 PM   #13
DarkRogueScribe
Member
DarkRogueScribe began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2025
Device: Kobo Colour
Quote:
Originally Posted by Sirtel View Post
If you're sure the only embedded font is the one used for journal entries and it displays correctly elsewhere, then...

1) Do other patches work (so we can be sure the problem is not an error in installing the patches)?

2) There are three alternatives for the un-force user font-family patch. Personally I use the third. Try it and comment out the first and the second alternative.
I don't think I have it installed correctly... Not sure how I'm doing it wrong though.
firmware version 4.42.23296
there isn't a kobo patch with the same version so I have 4.38.21908
there isn't a newer version I'm missing, is there?

Otherwise, I've gone into the .yaml files, turned the no to yes on the patch features I want (Un-force font-family override p tags (std epubs) and Un-Force user font-family in KePubs).

I'm on MacOS so I run the kobopatch.sh

Drag the new KoboRoot.tgz from the out folder in kobopatch to the .kobo on the device...

Am I missing something?

Really appreciating the help btw
DarkRogueScribe is offline   Reply With Quote
Old 08-16-2025, 05:50 PM   #14
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: 80,063
Karma: 147983159
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
delete post

Last edited by JSWolf; 08-16-2025 at 05:56 PM.
JSWolf is online now   Reply With Quote
Old 08-16-2025, 05:50 PM   #15
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: 13,699
Karma: 242197301
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DarkRogueScribe View Post
I don't think I have it installed correctly... Not sure how I'm doing it wrong though.
firmware version 4.42.23296
there isn't a kobo patch with the same version so I have 4.38.21908
there isn't a newer version I'm missing, is there?

Otherwise, I've gone into the .yaml files, turned the no to yes on the patch features I want (Un-force font-family override p tags (std epubs) and Un-Force user font-family in KePubs).

I'm on MacOS so I run the kobopatch.sh

Drag the new KoboRoot.tgz from the out folder in kobopatch to the .kobo on the device...

Am I missing something?

Really appreciating the help btw
Ah, I thought you had the Libra 2 (as visible under your devices), but you have a newer device. No, there are no patches for 4.42 and I'm not sure how many would work if you just changed the firmware number in the patches (the firmware numbers must match). Perhaps the patch doesn't work for 4.42 at all.

I only have the Sage and the Libra 2, for those the latest firmware is 4.38, so I have no idea which of the patches work for 4.42, if any.
Sirtel is offline   Reply With Quote
Reply

Tags
font embedding, kobo modding


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any way to use embedded fonts? MikeJ024 Conversion 5 01-23-2022 04:41 PM
Embedded fonts and User fonts JSWolf KOReader 4 02-02-2021 03:31 PM
embedded fonts vs e-reader fonts lumpynose ePub 19 05-29-2019 01:06 PM
Glo Kobo fonts naming conventions and embedded fonts roger64 Kobo Reader 0 05-09-2013 06:30 AM
Embedded fonts, Calibre, and choice of fonts AlexBell ePub 8 05-30-2010 06:00 AM


All times are GMT -4. The time now is 03:59 AM.


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