View Single Post
Old 02-05-2012, 07:31 PM   #3
Elfwreck
Grand Sorcerer
Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.
 
Elfwreck's Avatar
 
Posts: 5,187
Karma: 25133758
Join Date: Nov 2008
Location: SF Bay Area, California, USA
Device: Pocketbook Touch HD3 (Past: Kobo Mini, PEZ, PRS-505, Clié)
Quote:
Originally Posted by Doitsu View Post
AFAIK, @font-face is required for the definition of embedded fonts. For example:

Code:
@font-face {
    font-family: 'DejaVu Sans';
    src: url(../Fonts/DejaVuSans.ttf);
}

body { 
   font-family: 'DejaVu Sans', serif;
}
When I put that in the css file, I lose all the custom font formatting and it shows up in default sans-serif.

Without that, it displays fine in Sigil and on my computer in ePubreader, but doesn't work on my Sony or PEZ. (Shows up as default serif on ADE on a different computer.)

If I put single quotes around the font name, the font doesn't show up. I'm not sure if the font name with quotes should be one word or two, nor how I'd figure that out.
Elfwreck is offline   Reply With Quote