My userstyle.css is as follows:
@font-face {
font-family: -ua-default;
font-weight: normal;
font-style: normal;
src: url(res:///Data/epub/FONT/cambria/cambria.ttf);
}
@font-face {
font-family: -ua-default;
font-weight: bold;
font-style: normal;
src: url(res:///Data/epub/FONT/cambria/cambriab.ttf);
}
@font-face {
font-family: -ua-default;
font-weight: normal;
font-style: italic;
src: url(res:///Data/epub/FONT/cambria/cambriai.ttf);
}
@font-face {
font-family: -ua-default;
font-weight: bold;
font-style: italic;
src: url(res:///Data/epub/FONT/cambria/cambriaz.ttf);
}
@font-face {
font-family: "sans-serif1";
src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf);
}
h1 {
font-family: sans-serif1, sans-serif;
}
It works perfectly.
If there are any mistakes in the file, the reader will use the default font.
|