Quote:
I try the chinese epub file and it work!! How do you do it? Can you show me how?
|
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