Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 07:03 AM   #1
MidnightRose
Member
MidnightRose began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2025
Device: Kindle Colorsoft
Embed referenced fonts not embedding fallbacks.

Suppose I have something like this set in the CSS of an epub file:

Code:
font-family: Bookerly, "Segoe UI Symbol", "Segoe UI Historic", sans-serif;
When I try to embed the referenced fonts, it'll only pick the first in the list, Bookerly, and ignore the rest.

Problem is, I need the rest also in there as a fallback for special symbols that my kindle doesn't support natively.

Is there any way around this?

Modifying things manually isn't really a feasable option because I'm trying to set things up for automatic conversion using fanficfare, so all I can really do is specify fonts in the CSS.
MidnightRose is offline   Reply With Quote
Old Yesterday, 07:33 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: 79,961
Karma: 146918083
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 MidnightRose View Post
Suppose I have something like this set in the CSS of an epub file:

Code:
font-family: Bookerly, "Segoe UI Symbol", "Segoe UI Historic", sans-serif;
When I try to embed the referenced fonts, it'll only pick the first in the list, Bookerly, and ignore the rest.

Problem is, I need the rest also in there as a fallback for special symbols that my kindle doesn't support natively.

Is there any way around this?

Modifying things manually isn't really a feasable option because I'm trying to set things up for automatic conversion using fanficfare, so all I can really do is specify fonts in the CSS.
What you have to do is setup the fonts you want in different classes in the CSS. Then in the HTML, use spans for the symbols you want to display with the class that specifies the font you want.

The CSS you posted does not do what you think. What it does is use the first specified font if available and if not you get the second font if it's available. If not, it moves on to the next font and if that's not available, then you'll get sans-serif.

My suggestion is to try ChareInk7SP and see if you get the characters you want. ChareInk7SP has a lot of extended characters and very well may have what you are looking for. Here is where you can get ChareInk7SP. https://www.mobileread.com/forums/sh...d.php?t=184056
JSWolf is offline   Reply With Quote
Advert
Old Yesterday, 07:45 AM   #3
MidnightRose
Member
MidnightRose began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2025
Device: Kindle Colorsoft
Ah. I guess what I was trying to do isn't really possible then, because I specifically am looking for an automatic solution.
And since this is just for throwing weekly chapters of webnovels onto my kindle for comfortable reading, it's not really worth putting more effort into this.
On the other hand, if I *did* want to put in the effort, I suppose a plugin to search through the text and wrap a span around characters with missing glyphs shouldn't be too hard.
MidnightRose is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can it embed fonts? chalimac Kobo Reader 1 06-27-2017 05:46 PM
Calibre edit book does not embed referenced font dlibke Editor 8 11-07-2016 09:33 AM
Polish - embed all referenced fonts Sunlite Calibre 3 12-20-2013 01:37 PM
Is it possible to really embed fonts yet? LaurelRusswurm ePub 25 11-17-2011 10:25 PM
Is it possible to UN embed fonts? lmronan Sigil 14 06-04-2010 09:26 AM


All times are GMT -4. The time now is 08:54 AM.


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