Thread: Font Mystery
View Single Post
Old 05-06-2014, 12:18 PM   #6
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by UrbanR View Post
one thing I don't quite understand is the relation between (1) the font filename (2) the id it is assigned in the content.opf file (3) the "font-family" property in the CSS.
(1) can be anything, you can change it and it shouldn't matter, as long as you change all references.
(2) can be anything, you can change it and it shouldn't matter, as long as you change all references (and most likely there are none).
(3) can be anything, you can change it and it shouldn't matter, as long as you change all references.

So the relation is "none at all". The only caveat is that some readers want (3) to match the internal name of the font, and calibre will warn you if it doesn't. The internal name of the font is probably not the filename, and it's not obvious how to find it, because there may be a few of them. Other readers (and most web browsers) are not so picky and then the above holds.
Jellby is offline   Reply With Quote