Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font-variant-* #23

Closed
svgeesus opened this issue Jul 16, 2020 · 5 comments
Closed

font-variant-* #23

svgeesus opened this issue Jul 16, 2020 · 5 comments
Labels
✅ Has algorithm (1/3) An implementable algorithm for how to measure this stat has been described in the issue ⚠️ Needs JS Needs JS to calculate this stat ⚠️ Needs SQL Needs SQL to calculate this stat proposed stat Proposed statistic to study Section: Fonts

Comments

@svgeesus
Copy link
Collaborator

Stats on which font-variant-* longhands such as font-variant-numeric or font-variant-east-asian are being used.

Also whether the font-variant shorthand is being used with the none value, to reset all the longhands.

@svgeesus svgeesus added the proposed stat Proposed statistic to study label Jul 16, 2020
@Crissov
Copy link

Crissov commented Jul 21, 2020

Comparative stat for font-feature-settings?

@svgeesus
Copy link
Collaborator Author

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.

@svgeesus
Copy link
Collaborator Author

svgeesus commented Jul 25, 2020

Correspondences between high-level font-* properties and low-level font-feature-settings features

font-kerning

  • kern
  • vkrn

font-variant-ligatures

  • liga
  • clig
  • dlig
  • hlig
  • calt

font-variant-position

Perhaps check if stylesheet authors try to nest this (it doesn't work)

  • subs
  • sups

font-variant-caps

Also depends on value of font-feature-settings

  • smcp
  • c2sc
  • pcap
  • c2pc
  • unic
  • titl

font-variant-numeric

  • lnum
  • onum
  • pnum
  • tnum
  • frac
  • afrc
  • ordn
  • zero

font-variant-alternates

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 20
  • cvxx where xx is 00 to 99
  • swsh
  • cswh
  • ornm
  • nalt

font-variant-east-asian

  • jp78
  • jp83
  • jp90
  • jp04
  • smpl
  • trad
  • fwid
  • pwid
  • ruby

@LeaVerou LeaVerou added ⚠️ Needs algorithm ⚠️ Needs JS Needs JS to calculate this stat ⚠️ Needs SQL Needs SQL to calculate this stat labels Aug 4, 2020
@LeaVerou
Copy link
Owner

Alright, so this again seems pretty straightforward:

  1. We measure usage of the various 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 Shorthand vs longhand stats #10 and not care about it here)
  2. We measure usage of the various low-level settings @svgeesus posted about by measuring incidence of the code in quotes in font-feature-settings (single or double quotes).

@LeaVerou LeaVerou added ✅ Has algorithm (1/3) An implementable algorithm for how to measure this stat has been described in the issue and removed ⚠️ Needs algorithm labels Aug 22, 2020
@LeaVerou LeaVerou added this to Has algorithm in Almanac 2020 Aug 22, 2020
@LeaVerou
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Has algorithm (1/3) An implementable algorithm for how to measure this stat has been described in the issue ⚠️ Needs JS Needs JS to calculate this stat ⚠️ Needs SQL Needs SQL to calculate this stat proposed stat Proposed statistic to study Section: Fonts
Projects
Almanac 2020
Has algorithm
Development

No branches or pull requests

3 participants