This is a great progress!! Thanks!
Quote:
Originally Posted by Morkl
I put them in a sample document and tested it, and italics and bold did not work. Turns out the following lines break things:
Code:
@font-face{ font-family: serif; font-variant:small-caps; src: url(res:///ebook/fonts/AmasisMTW1G.otf);}
and/or
@font-face{ font-family: sans-serif; font-variant:small-caps; src: url(res:///ebook/fonts/AmasisMTW1G.otf);}
Any CSS gurus here that know how to fix them?
|
Here's what I found:
http://www.w3.org/TR/css3-fonts/#propdef-font-variant
"Like other shorthands, using ‘font-variant’ resets all font feature properties to their initial values."
So maybe this is why including font-variant in the @font-face rule breaks all other definitions?
Does the small-cap text display correctly without the css lines above?