View Single Post
Old 12-19-2011, 11:03 PM   #21
dr1ver
Member
dr1ver began at the beginning.
 
dr1ver's Avatar
 
Posts: 15
Karma: 10
Join Date: Dec 2011
Device: NOOK STR
Quote:
Originally Posted by treadlightly View Post
Do your font files have extensions?
yes, .ttf. i see i forgot to include the extensions in the code. thank you

Quote:
Originally Posted by pssquirrel View Post
Thank you, treadlightly!!
If you renamed the fonts myfont.ttf then the code needs to be:

@font-face { font-family: serif; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/myfont.ttf);}

If you left the font name "CaeciliaLTStd-Roman" that's fine. But as treadlightly notes, you still need an extension -- either CaeciliaLTStd-Roman.ttf or CaeciliaLTStd-Roman.otf, whichever the case may be.

Finally, you need to call the font-family. The exact code depends on how the epub is formatted, but try adding this at the very bottom of the css file:

body, div, p { font-family: serif; }

.calibre { font-family: serif; }


Hope this helps!
i added the file extensions and the code you provided to the bottom of the CSS file and it worked! uggh, finally! thank you!
dr1ver is offline   Reply With Quote