View Single Post
Old 04-06-2013, 04:40 PM   #15
Anak
Guru
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 600
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
Code:
@font-face {
font-family: -ua-default;
font-style : normal;
font-weight : normal;
src : url("res:///fonts/Adobe Text Pro OsF.otf");
} 
@font-face {
font-family: -ua-default;
font-style:italic;
font-weight:normal;
src:url("res:///fonts/Adobe Text Pro OsF-Italic.otf");
}
@font-face {
font-family: -ua-default;
font-style:normal;
font-weight:bold;
src:url("res:///fonts/Adobe Text Pro OsF-Bold.otf");
}
@font-face {
font-family: -ua-default;
font-style:italic;
font-weight:bold;
font-variant:normal;
src:url("res:///fonts/Adobe Text Pro OsF-BoldItalic.otf");
}
Put this in your CSS and it will work. I only tested it with sideloaded epubs.
res:///fonts/ refers to the fonts directory in the root directory of the device.
font-variant is not supported, so a fifth style (small-caps) doesn't work.
You can also use serif, sans-serif instead of -ua-default;
Anak is offline   Reply With Quote