Closed svgeesus closed 4 years ago
Comparative stat for font-feature-settings
?
Comparative stat for
font-feature-settings
?
Indeed, that would be very useful, particularly where one could use either approach. IIRC font-feature-settings
was deployed in browsers first, so some usage may simply reflect "that was the only thing that worked at the time".
CSS Fonts 4 has the data to map feature codes to variant values.
*Correspondences between high-level `font-properties and low-level
font-feature-settings` features**
kern
vkrn
liga
clig
dlig
hlig
calt
Perhaps check if stylesheet authors try to nest this (it doesn't work)
subs
sups
Also depends on value of font-feature-settings
smcp
c2sc
pcap
c2pc
unic
titl
lnum
onum
pnum
tnum
frac
afrc
ordn
zero
This one was dropped from CSS Fonts 3 due to lack of implementer support. This is an area where the Open Web Platform lags behind native, which has good alternates support.
hist
salt
ssxx
where xx is 00 to 20cvxx
where xx is 00 to 99swsh
cswh
ornm
nalt
jp78
jp83
jp90
jp04
smpl
trad
fwid
pwid
ruby
Alright, so this again seems pretty straightforward:
font-variant
properties, including usage in the font-variant
shorthand and the font
shorthand. We should probably keep the counts separate, to see if the shorthands are used at all (or we can just do that in #10 and not care about it here)font-feature-settings
(single or double quotes).After consulting with @rviscomi, it appears the overlap with the Fonts chapter is too significant, so we will not have a Fonts section. Therefore, I'm closing this.
Stats on which
font-variant-*
longhands such asfont-variant-numeric
orfont-variant-east-asian
are being used.Also whether the
font-variant
shorthand is being used with thenone
value, to reset all the longhands.