View Single Post
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,960
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