Quote:
Originally Posted by fiery
@font-face {
font-style: italic;
font-family: 'Liberation', serif, sans-serif;
font-weight: normal;
src: url(LiberationSerif-Italic.ttf);
}
@font-face {
font-style: normal;
font-family: 'Liberation', serif, sans-serif;
font-weight: normal;
src: url(LiberationSerif-Regular.ttf);
}
@font-face {
font-style: italic;
font-family: 'Liberation', serif, sans-serif;
font-weight: bold;
src: url(LiberationSerif-BoldItalic.ttf);
}
@font-face {
font-style: normal;
font-family: 'Liberation', serif, sans-serif;
font-weight: bold;
src: url(LiberationSerif-Bold.ttf);
}
|
I don't really understand putting multiple family names in the @font-face declaration. This makes sense when you're
using the fonts: you want a stack so that it moves down to a fallback if need be, but in the font-face, all this can do is screw up the fallbacks, right?
In any case, it appears that calibre's own viewer does not support multiple font weights/styles defined for the same family, which is rather obnoxious. At least others seem to.
(P.S. Hmm. Now I'm not entirely sure about this. I need to investigate something.)