Quote:
Originally Posted by paola
rkomar, you are absolutely right, the name of the font in the internal system is "Lexia DaMa". So I have tried just tweaking the epub in calibre, adding the line
Code:
font-family: "Lexia DaMa", serif;
in the .calibre block, but it did not work.
So I tried with the "full" version of the code, but removing the "src" line, and it did not work either (and yes, the fonts are where they should be, and indeed they are found even when fonts are not embedded). But perhaps I haven't fully understood your suggestion.
|
I think I would go back to the original CSS file, search for "font-family" statements where "Fontin, serif" is specified, and then just add "Lexia DaMa" before it in those lines:
Code:
font-family: "Lexia DaMa", Fontin, serif;
That way, the Lexia font will be used if it is available, and the embedded Fontin font will be used as a fallback. You may have to do this in a few places in the CSS file. Leave the Fontin @font-face blocks as they are.
I'm not a Calibre expert, but I wouldn't be surprized if you could set the preferred fonts within Calibre itself when doing the conversion.