Mobileread
Foreign fonts (PL) in epub
#1  tntmarek 03-04-2011, 04:13 PM
Hey, all

Do you maybe know how can i make my Cool-er to show polish fonts in epub?
It does, show polish fonts, without problems in pdf, but its not best way of reading books honesty.

I tried a bit changing books' CSS Styles. It was told to:
1. while creating epub in Calibri put to CSS window

Code
@font-face {
font-family: "Georgia";
font-weight: normal;
font-style: normal;
src: url(georgia.ttf);
}
@font-face {
font-family: "Georgia";
font-weight: bold;
font-style: normal;
src: url(georgiab.ttf);
}
@font-face {
font-family: "Georgia";
font-weight: normal;
font-style: italic;
src: url(georgiai.ttf);
}
@font-face {
font-family: "Georgia";
font-weight: bold;
font-style: italic;
src: url(georgiaz.ttf);
}
body {
font-family: "Georgia", serif;
}
2. to zip newly created epub
3. unzip it, copying tif fonts into it
4. adding to file content.opf :

Code
<manifest>
<item href="georgia.ttf" media-type="application/octet-stream" id="id1"/>
<item href="georgiab.ttf" media-type="application/octet-stream" id="id2"/>
<item href="georgiai.ttf" media-type="application/octet-stream" id="id3"/>
<item href="georgiaz.ttf" media-type="application/octet-stream" id="id4"/>
5. saving, ziping all together and then changing ext. for epub.

Original manual in polish

I did it, such way, after wards in "Stanza" on my Mac, i had back polish fonts, same was on my iphone. Sadly, cooler didn't recognise file and gave me some type of error

////////////////

Do you maybe know what should i do differently ?
Or where should i copy fonts on my cooler and how to edit CSS
Code
src: url(res:///mnt/flash/czcionki/xxxx.ttf);
Reply 

#2  Qxr 03-04-2011, 07:05 PM
I tested this book http://www.wolnelektury.pl/media/lektura/sonety-krymskie_1.epub on Cool-er with Росketbook firmware - all the Polish-specific characters were displayed correctly.
Reply 

Today's Posts | Search this Thread | Login | Register