View Single Post
Old 05-11-2010, 05:38 PM   #47
ttluisa
Enthusiast
ttluisa began at the beginning.
 
Posts: 33
Karma: 30
Join Date: May 2010
Device: kobo, kindle 3
Quote:
Originally Posted by chalimac View Post
Ok. Thanks for testing it.

If you rename the epub to zip and open it with winrar o winzip you can see how the trick works. There are 2 key files inside the epub:

- style.css
- DroidSansFallback.ttf

If you open style.css with a text editor you can see it points to the font to use (DroidSansFallback.ttf) . This file can be more complex defining things like margins and line height... If you put this 2 files inside any epub and then zip it again you can display chinese text.

Now here I attach another epub with Chinese, Korean and Japanese in it. It uses the same method but the style.css is more complex, with more parameters such as line-spacing, indentation . Please tell me how it works and if it looks good (I don't have a Kobo).

http://ifile.it/he87awg

EDIT: The file content.opf must also declare the location of style.css as in:

<item id="style" href="style.css" media-type="text/css"/>

Check the epub subforum for more info on embedding fonts
I tried some other Chinese epub file with embedded fonts and they just don't work. GOD I was perfectly fine without Chinese support on my kobo until I see this post and tried something don't work for me. Now I'm so frustrated...

This is the link of the Chinese font embedded epub that I tried that didn't work, can someone who has a clue with it please check it out and let me know what's wrong??
ttluisa is offline   Reply With Quote