Quote:
Originally Posted by pepak
I am using "generic" font-families everywhere:
Code:
code { font-family: monospace; }
Is it possible to instruct ADE that my custom font "Courier CE" should be used as a default monospace font?
|
Turns out the solution is extremely simple. All you need to do is to add the generic family to your @font-face:
Code:
@font-face { font-family: "Courier CE", monospace; font-weight: normal; font-style: normal; font-variant: all; src: url(res:///Data/fonts/cour.ttf); }
I still haven't solved the problem with font-variant: small-caps, though -
font-variant: all should take care of that as per CSS3 specs, but it does not - Calibre complains that such a value is not allowed, but duly puts it in the EPUB, where it is then completely ignored by ADE (on Sony Reader).