View Single Post
Old 05-26-2009, 11:28 AM   #35
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by mtravellerh View Post
You could use the "text-transform: uppercase" and "font-size: small" to create a simile. Bit complicated but it LOOKS quite a bit like small caps.
That's probably what the client does to "fake" smallcaps when there is not a true smallcaps font available (and I'd say most wouldn't know when there is). The difference is:

Smallcaps: SMALLCAPS!

Uppercase+small: SMALLCAPS!

(note the S and ! sizes) Unless you do what I did here and apply different styles to different parts of the words. (By the way, I've seen not all browsers know to treat punctuation correctly with smallcaps.)

But... as I said, "font-variant: smallcaps" is at least recognized in the ePUB spec, whereas "text-transform: uppercase" isn't.
Jellby is offline   Reply With Quote