Skip to content

New web font subsets - Basic Latin only subset + "everything else" subset #385

Open
@chrissimpkins

Description

@chrissimpkins

Rationale:

  1. the vast majority of glyphs displayed in source code fall within the Basic Latin set
  2. there are exceptions that include string literals and comments, so an increased breadth of glyph coverage is necessary in some circumstances
  3. size matters for initial page loads with web fonts
  4. file sizes in this project are relevant with respect to point 3 above
  5. There may be creative ways to display source code semantics that involve a mixture of different fonts for the Basic Latin elements and portions of source text that include glyphs outside of this Unicode range (e.g. use of proportional width fonts for comment blocks)

We are going to produce additional web font subsets with a new set of CSS files to support serving a very slim Basic Latin only set as default with "everything else" set loaded only in cases when Hack is being used to style glyphs outside of the Basic Latin set. After discussion with @chriscoyier and review of the way that web fonts are served in the Google Fonts project, this approach appears to be feasible using a combination of CSS definitions and these defined subsets of the full font set.

Initial testing shows these Basic Latin only sets to be ~ 50% size of current subset web fonts and ~10-15% size of the full character set web fonts.

We will not eliminate any existing web font subsets. These will be produced in addition to the current subsets and full sets that we offer.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions