View Single Post
Old 07-15-2011, 08:33 AM   #26
Atilla
Addict
Atilla ought to be getting tired of karma fortunes by now.Atilla ought to be getting tired of karma fortunes by now.Atilla ought to be getting tired of karma fortunes by now.Atilla ought to be getting tired of karma fortunes by now.Atilla ought to be getting tired of karma fortunes by now.Atilla ought to be getting tired of karma fortunes by now.Atilla ought to be getting tired of karma fortunes by now.Atilla ought to be getting tired of karma fortunes by now.Atilla ought to be getting tired of karma fortunes by now.Atilla ought to be getting tired of karma fortunes by now.Atilla ought to be getting tired of karma fortunes by now.
 
Posts: 225
Karma: 619496
Join Date: Jul 2010
Location: Canada
Device: Kindle 3, Kindle 3 3G, Kobo Touch, Playbook,Kobo Clara HD,Kobo Libra 2
Quote:
Originally Posted by charleski View Post
From scanning through libadobe.so it looks like you adopted something similar to my suggestion (or came up with it on your own, it's fairly obvious).

Code:
Normalˇˇ@font-face { font-family: -ua-default; font-style: normal; font-weight: normal; src: url('res:///fonts/normal/%1') }
ˇˇˇ@font-face { font-family: -ua-default; font-style: italic; font-weight: normal; src: url('res:///fonts/italic/%1') }
ˇˇˇBold Italicˇ@font-face { font-family: -ua-default; font-style: italic; font-weight: bold; src: url('res:///fonts/bolditalic/%1') }
ˇBoldˇˇˇˇ@font-face { font-family: -ua-default; font-style: normal; font-weight: bold; src: url('res:///fonts/bold/%1') }
So looking at this, it seems that to get fonts working properly in different styles and weights you need to create the following directories under the fonts folder: normal, italic, bold, bolditalic, and then copy the relevant font files to the correct locations (regular to the normal directory, italic to the italic directory, etc) and that they need to have the same filename in each dir. Is this correct?

I couldn't help noticing a reference to res:///userStyle.css. Does this imply that the default base css can be replaced?
No, only use a single directory named fonts
Atilla is offline   Reply With Quote