Quote:
Originally Posted by treadlightly
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
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!