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

[fontra-workflow] Write an action that trims variable glyphs based on how they are used as components #1772

Open
justvanrossum opened this issue Nov 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@justvanrossum
Copy link
Collaborator

fontra-workflow is quite capable of trimming axes, aka. slicing the designspace.

However, when we want to export variable components (either as source or as ttf/otf + VARC) it can be beneficial to trim the variable glyphs of redundant axes and sources.

This involves to steps:

  1. analyze which slice of a variable glyph's designspace is acgtually used throughout the font
  2. slice the variable glyphs accordingly

I'm not yet sure how hard step 1 is for deeply nested components. I assume it should be done in as many steps as there are levels of nesting: process glyphs from shallow to deep usage.

We have the logic for step 2, but it may have to be refactored. It is currently only used for global axes.

@justvanrossum justvanrossum added the enhancement New feature or request label Nov 8, 2024
@justvanrossum justvanrossum self-assigned this Nov 8, 2024
@justvanrossum justvanrossum moved this to 📋 Backlog in Fontra Project Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant