View Single Post
Old 03-04-2022, 02:43 PM   #51
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Jellby View Post
It's not just personal preference, it depends on the font. Fonts with a larger x-height will want a larger scale and fonts with a smaller x-height a smaller scale. I doubt 0.8333 or 0.85 or 0.8 will make much of a difference as a default for a generic unknown font. If you want it to work best for your particular font choice, experiment and find the best value to the 8th decimal figure if you like.

Besides, text-transform:uppercase is not equivalent to small-caps. If you want to fake small-caps, you better do something like:

Code:
T<small>HIS<small> <small>TEXT</small> <small>IS</small> <small>IN</small> F<small>RENCH</small>!
where you assign your preference scale to <small>. Note that only "small" letters are scaled, not capital letters, spaces, or punctuation.

But my advice would be:

1. If small-caps are just a style choice, think of something else, maybe bold, italic or underline would be valid for whatever emphasis or highlight is intended.

2. If it's important that it's actually small-caps, use an embedded true small-caps font.
I actually made my guys go through an exercise to make a one-size-fits all dropcap--and they work--but omg, it took us forever.

Hitch
Hitch is offline   Reply With Quote