View Single Post
Old 04-18-2011, 09:55 PM   #2010
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by edbro View Post
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?



I've also tried replacing the "res:///database" with just "/database". Still no luck when change css files.
You have a bit of the path missing. Instead of:
Code:
src: url(res:///database/system/PRSPlus/epub/FONT/Garamond/AGaramondPro-Regular.otf)
try
Code:
src: url(res:///Data/database/system/PRSPlus/epub/FONT/Garamond/AGaramondPro-Regular.otf)
This assumes that you have saved the actual .otf files in directory /database/system/PRSPlus/epub/FONT/Garamond/ in internal memory and that the whole dir path is case-sensitive. Although you can't see the /Data the Sony can. What you see as the root directory of int memory is res:///Data/ to the Sony.
jackie_w is offline   Reply With Quote