View Single Post
Old 03-04-2022, 02:50 PM   #52
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,615
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by JSWolf View Post
.888em is wrong. It's 0.8333em.
But I know .7em is too small for the proper size of small caps. I'm not saying mine is correct, but it's pretty close if not. But if anyone has a better value, please post it.
Ok. I was just curious where it came from.

I did play with all sizes between .9 - .5 and found .7 was just right for me. I tried .9 and .8 and found them too big and the smallcaps look somewhat diminished.

I tried to size the smallcaps the same size as the lowercase letters, and .7 came the closest without going into 2 or 3 decimal places as shown in the image.



Quote:
Originally Posted by Jellby View Post
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.
That is interesting. I did not consider using the <small> method. But seems a bit of extra work.

I used my particular method of .7 and text transform, so if there was a fix for the smallcaps issue in Kobo, I could quickly change the css code.
Attached Thumbnails
Click image for larger version

Name:	smallcaps.jpg
Views:	268
Size:	74.6 KB
ID:	192572  
Karellen is offline   Reply With Quote