View Single Post
Old 03-14-2009, 11:01 AM   #23
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
After I have defined the external font-faces:
Code:
@font-face { font-family: "Times"; font-weight: normal; font-style: normal; src: url(res:///Data/fonts/times.ttf); }
@font-face { font-family: "Times bold"; font-weight: bold; font-style: normal; src: url(res:///Data/fonts/timesbd.ttf); }
@font-face { font-family: "Times italic"; font-weight: normal; font-style: italic; src: url(res:///Data/fonts/timesi.ttf); }
@font-face { font-family: "Times bold italic"; font-weight: bold; font-style: italic; src: url(res:///Data/fonts/timesbi.ttf); }
and told body to use the basic font:
Code:
body { font-family: "Times CE", serif; }
do I need to add definitions to use the italic/bold variants as well, or will ADE use them automatically?
Code:
strong, b { font-family: "Times CE bold", serif; }
em, i { font-family: "Times CE italic", serif; }
...
And a second question: 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, or do I need to update all definitions to:
Code:
code { font-family: "Courier CE", monospace; }
?

Last edited by pepak; 03-14-2009 at 11:05 AM.
pepak is offline   Reply With Quote