View Single Post
Old 03-15-2009, 04:19 AM   #29
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Quote:
Originally Posted by pepak View Post
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).
pepak is offline   Reply With Quote