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;