View Single Post
Old 05-21-2010, 09:21 AM   #1184
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
I use the follow css to display Chinese charaters in epubs. The first url of each font-face is the internal url of the font, the second one is used to preview epubs in EBookLibrary (Fonts put in the same directory of EBookLibrary executable.

I think this css can also be used by other languages.

Code:
@font-face      { font-family:"title_font";     src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf), url(res:///tt0003m_.ttf); }
@font-face      { font-family:"text_font"; src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf), url(res:///tt0011m_.ttf); }
body            { font-family:"text_font", serif; orphans: 0; widows: 0;}
h1,h2,h3,h4,h5,h6 { font-family:"title_font", sans-serif; }
thawk is offline   Reply With Quote