View Single Post
Old 01-14-2012, 10:05 PM   #10
soseono
Connoisseur
soseono can successfully navigate the Paris bus system.soseono can successfully navigate the Paris bus system.soseono can successfully navigate the Paris bus system.soseono can successfully navigate the Paris bus system.soseono can successfully navigate the Paris bus system.soseono can successfully navigate the Paris bus system.soseono can successfully navigate the Paris bus system.soseono can successfully navigate the Paris bus system.soseono can successfully navigate the Paris bus system.soseono can successfully navigate the Paris bus system.soseono can successfully navigate the Paris bus system.
 
soseono's Avatar
 
Posts: 62
Karma: 36180
Join Date: Dec 2011
Location: US East Coast
Device: Kobo Aura HD, Kindle 4, Sony PRS-T1 (formerly PRS-500 & 505), iPad Air
This is a great progress!! Thanks!

Quote:
Originally Posted by Morkl View Post
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?

Last edited by soseono; 01-14-2012 at 10:15 PM.
soseono is offline   Reply With Quote