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

Variable fonts statistics #2

Closed
LeaVerou opened this issue Jul 10, 2020 · 6 comments
Closed

Variable fonts statistics #2

LeaVerou opened this issue Jul 10, 2020 · 6 comments
Assignees
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

@LeaVerou
Copy link
Owner

  • How many websites use variable fonts?
  • What variation axes do they declare/use?
  • Do they mostly use the low-level font-variation-settings, or the higher level properties (where available)?
  • What custom axes do they use?
@LeaVerou LeaVerou added the proposed stat Proposed statistic to study label Jul 10, 2020
@LeaVerou LeaVerou added ⚠️ Needs SQL Needs SQL to calculate this stat ⚠️ Needs JS Needs JS to calculate this stat ⚠️ Needs algorithm labels Aug 4, 2020
@LeaVerou LeaVerou added this to New in Almanac 2020 Aug 22, 2020
@LeaVerou
Copy link
Owner Author

LeaVerou commented Aug 22, 2020

Suggested algorithm (@svgeesus please review):

  • Measure usage of font-variation-settings by axis, both as a descriptor and as a property.
  • Measure usage of two-value font-weight, font-style, font-stretch descriptors in @font-face
  • Measure usage of font-weight that is non divisible by 100, font-style with oblique <angle>, font-stretch with percentages not divisible by 12.5%, or outside the [50%, 200%] range
  • For @font-face and CSS rules with the above, record the font-family (to find most popular variable fonts)

@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 moved this from New to Has algorithm in Almanac 2020 Aug 22, 2020
@LeaVerou LeaVerou self-assigned this Sep 16, 2020
@LeaVerou
Copy link
Owner Author

LeaVerou commented Sep 16, 2020

I was about to start working on this, but it looks like there's huge overlap with the Fonts chapter: HTTPArchive/almanac.httparchive.org#902

There is some earlier discussion in there confirming this. I'm about to close this issue, but want to make sure that everything we planned to study is accounted for in Fonts.

cc @rviscomi @AbbyTsai @jpamental @davelab6

@AbbyTsai
Copy link

@LeaVerou woo, Happy to work the interaction of css and fonts chapters.
Some of them seem may be combined to existing fonts queries,
others would love to have your warm hands in together,
as I'm just new to the field(js, sql, etc) and couldn't start the journey without samples . Thank you.
1.How many websites use variable fonts? see fonts_04_14, payload, table_sizes.var.axisCount >0
2.What variation axes do they declare/use? see fonts_04_16, font-variation-settings
3.Do they mostly use the low-level font-variation-settings, or the higher level properties (where available)? need sample
4.What custom axes do they use? need sample

@LeaVerou
Copy link
Owner Author

Hi @AbbyTsai,

Happy to help! What do you mean by samples? Samples of CSS?

@AbbyTsai
Copy link

@LeaVerou , would like to have both. (js+sql) if possible. thank you.

@LeaVerou
Copy link
Owner Author

As much as I would love to, I'm afraid I don't have time to write queries for other chapters, since we already have ~40 metrics to calculate here. However, I would be happy to provide help with the algorithm or JS to whomever needs it.
Looking at the content outline it appears that pretty much all of these metrics are planned for the Fonts chapter, so I'm gonna go ahead and close 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