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

Glyph reuse #99

Open
rsheeter opened this issue Jan 22, 2023 · 2 comments
Open

Glyph reuse #99

rsheeter opened this issue Jan 22, 2023 · 2 comments
Assignees

Comments

@rsheeter
Copy link
Contributor

rsheeter commented Jan 22, 2023

Identify and exploit sets of shapes where for each set of shapes there exists one shape from which all the others in the set can be derived by application of a transform.

See existing code for this in nanoemoji:

Implementation in fontmake-rs:

  • Emit reuse information per-glyph after each glyph completes
  • Once all glyphs complete merge them and figure out what is reusable
@anthrotype
Copy link
Member

can be derived by application of a transform

if here you mean glyf components, note that with variable fonts currently only the component x and y offset can be varied, not its 2x2 transform; that has to match across the designspace.

@rsheeter
Copy link
Contributor Author

I had in mind to do a generic reuse detection and then choose whether to exploit what it found later, such as perhaps electing to not do it for glyf if the 2x2 varies. That will set us up well to compile COLR and to leverage variable components when they arrive courtesy of https://github.com/harfbuzz/boring-expansion-spec (optimistic hat firmly on).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants