View Single Post
Old 03-06-2010, 10:30 AM   #8
ctos
Enthusiast
ctos has learned how to read e-booksctos has learned how to read e-booksctos has learned how to read e-booksctos has learned how to read e-booksctos has learned how to read e-booksctos has learned how to read e-booksctos has learned how to read e-books
 
Posts: 27
Karma: 881
Join Date: Feb 2010
Location: Beijing, China
Device: Nook, G1
Update, you don't need additional font file now, you can use system embedded font to display Chinese (or language android native supported). Thanks wallcraft's comments!

You just need apply below scripts in Extra CSS:

@font-face {
font-family: "DroidFont", serif, sans-serif;
font-weight: normal;
font-style: normal;
src: url(res:///system/fonts/DroidSansFallback.ttf);
}
@font-face {
font-family: "DroidFont", serif, sans-serif;
font-weight: bold;
font-style: normal;
src: url(res:///system/fonts/DroidSansFallback.ttf);
}
@font-face {
font-family: "DroidFont", serif, sans-serif;
font-weight: normal;
font-style: italic;
src: url(res:///system/fonts/DroidSansFallback.ttf);
}
@font-face {
font-family: "DroidFont", serif, sans-serif;
font-weight: bold;
font-style: italic;
src: url(res:///system/fonts/DroidSansFallback.ttf);
}
body { font-family: "DroidFont", serif;}

enjoy it!

Last edited by ctos; 03-06-2010 at 11:20 AM.
ctos is offline   Reply With Quote