View Single Post
Old 01-08-2016, 08:50 PM   #6
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by theducks View Post
Code:
  font-family: "minya-it";
    font-weight: normal;
    font-style: normal;
Your problem was you said it was a Normal font in your @font
This. With Adobe Digital Editions, IIRC, an @font rule only gets matched if the font-weight and font-style properties in the current CSS are a close or exact match for the corresponding values in the font declaration. Otherwise, the @font rule doesn't match, and it falls back to the inherited font from the parent element if applicable, or the default font otherwise.

You could also define the bold tag as using font-weight: normal and the italic tag as using font-style: italic, with the caveat that if the user changes the font, they'd lose all formatting that way.

Last edited by dgatwood; 01-08-2016 at 08:52 PM.
dgatwood is offline   Reply With Quote