View Single Post
Old 12-31-2011, 05:15 PM   #263
kado
Enthusiast
kado began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Dec 2011
Device: Nook 1st Edition
Certainly, I was at first quite puzzled with the quotes, sometimes without, sometimes with double quotes. I have tried the exact string. LiberationSerif fonts are copied under "my fonts" as suggested, so the url string should work out correctly.

What I am trying to convert is the attached txt file and the resultant epub is also attached. In the epub, the famous url statement is not in sheetstyle.css but in index.html as we discussed before. There is just a reference to LiberationSerif family in sheetstyle.css rather than the whole Extra CSS block which is:
Code:
@font-face {
font-style: italic;
font-family: 'LiberationSerif', serif, sans-serif;
font-weight: normal;
src: url('res:///system/media/sdcard/my fonts/LiberationSerif-Italic.ttf');
}
@font-face {
font-style: normal;
font-family: 'LiberationSerif', serif, sans-serif;
font-weight: normal;
src: url('res:///system/media/sdcard/my fonts/LiberationSerif-Regular.ttf');
}
@font-face {
font-style: italic;
font-family: 'LiberationSerif', serif, sans-serif;
font-weight: bold;
src: url('res:///system/media/sdcard/my fonts/LiberationSerif-BoldItalic.ttf');
}
@font-face {
font-style: normal;
font-family: 'LiberationSerif', serif, sans-serif;
font-weight: bold;
src: url('res:///system/media/sdcard/my fonts/LiberationSerif-Bold.ttf');
}
body {
margin-right: 8pt;
font-family: 'LiberationSerif', serif;
}
This is where we are different Jackie_W, I mean the stylesheet.css. The epub you sent me worked out perfectly and it is exactly in the same format and structure with the very rare Turkish-friendly epubs I could ever find on the net: These epubs contain LiberationSerif family fonts (4 alltogether) inside epub and also stylesheet.css is exactly how it looks above and not in the index.html. The epub that I generate does not contain LiberationFonts -well it should not contain, that's normal, we are hoping it will be accessed from Nook internal memory.

If the fonts are correct, if the url string is fine, then I started to think that I am falling victim to Calibre conversion. Really don't know what else to think after all my trials and all those solid and confident suggestions by Nook experts... Another possibility is the firmware difference as I mentioned before.

I have a question: When you generate your epub - the one you sent me through, am I right to think that you yourself didn't insert those LiberationSerif fonts inside the epub container, nor the stylesheet.css which I expect it was created by Calibre? What I expect after my conversion is the very same epub but without fonts embedded in the epub.

It is 2012 here in Turkey for 8 minutes now.
Attached Files
File Type: epub Turkish Fonts - Unknown.epub (2.6 KB, 603 views)
File Type: txt Turkish Fonts.txt (206 Bytes, 604 views)
kado is offline   Reply With Quote