View Single Post
Old 05-19-2011, 02:44 PM   #27
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
Quote:
Originally Posted by rkomar View Post
One of the weaknesses with choosing fonts is that you have to spell the name exactly as the system sees it. Try using the "Configuration->Appearance->Interface font" tool to see that your font is available, and what exact name it appears under (including any spaces). It may not be "LexiaDaMa", but something similar like "Lexia DaMa". Using that exact name (with quotes around it if it contains spaces) for "font-family:" in your .calibre block should cause it to be used. You probably don't need the "@font-face:" blocks at all for system (i.e. non-embedded) fonts.

In the above, I assumed that you copied your fonts to the /mnt/ext1/system/fonts directory already.
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.
paola is offline   Reply With Quote