View Single Post
Old 04-18-2011, 07:28 PM   #2007
edbro
Banned
edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.
 
Posts: 640
Karma: 4911
Join Date: Jul 2007
Location: Grapevine, TX
Device: iPad4
I need help please with changing the fonts. I have several different fonts but when I switch among them using "User EPUB Style" in Book Viewer Settings, nothing changes. The fonts stay the same. So, I'm guessing my css files are not quite correct, probably the path. Below is an example for the Garamond font. Can anybody tell me if it is correct please?

Quote:
@font-face {
font-family: adobegaramondpro;
font-weight: normal;
font-style: normal;
src: url(res:///database/system/PRSPlus/epub/FONT/Garamond/AGaramondPro-Regular.otf);
}

@font-face {
font-family: adobegaramondpro;
font-weight: bold;
font-style: normal;
src: url(res:///database/system/PRSPlus/epub/FONT/Garamond/AGaramondPro-Bold.otf);
}

@font-face {
font-family: adobegaramondpro;
font-weight: normal;
font-style: italic;
src: url(res:///database/system/PRSPlus/epub/FONT/Garamond/AGaramondPro-Italic.otf);
}

@font-face {
font-family: adobegaramondpro;
font-weight: bold;
font-style: italic;
src: url(res:///database/system/PRSPlus/epub/FONT/Garamond/AGaramondPro-BoldItalic.otf);
}

@font-face {
font-family: "sans-serif1";
src:url(/opt/sony/ebook/FONT/tt0003m_.ttf);
}

h1 {
font-family: sans-serif1, sans-serif;
}
body {
font-family: adobegaramondpro; line-height: 1.2em
}
I've also tried replacing the "res:///database" with just "/database". Still no luck when change css files.
edbro is offline   Reply With Quote