utility-opentype
utility-opentype copied to clipboard
Review `font-variant-caps: all-small-caps`
Review font-variant-caps: all-small-caps
, which is used for .c2sc
and .caps
. I was previously under the impression that this wouldn’t synthesise glyphs (ie. create faux small caps) but that doesn’t seem to be the case in practice or according to MDN:
This keyword forces the use of small capital letters for lower case characters. It corresponds to the OpenType values
smcp
andc2sc
; if the font doesn't support them, it synthesizes the glyphs.
That is an unfortunate decision. From my quick test, font-synthesis: none
doesn’t seem to fix this either.
...Whaaat?!
Yes, unfortunate. Is that a spec thing, or a particular implementation? What environments are you testing in, perchance?
Just Chrome, I happened to be using it myself and it was creating faux small caps out of a typeface that didn’t have any. I haven’t had a chance to research it much yet. From the MDN link, it looks like I might have been wrong and the browsers synthesise caps in most situations.