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

Add avar1 layer #14

Open
Lorp opened this issue May 28, 2024 · 2 comments
Open

Add avar1 layer #14

Lorp opened this issue May 28, 2024 · 2 comments

Comments

@Lorp
Copy link
Owner

Lorp commented May 28, 2024

The app will be improved by adding an avar v1 layer, so that an entire avar table can be created with both avar1 and avar2 sections active. This will be particularly useful for fonts where the designspace document uses designer units (e.g. Weight axis with values based on stem widths measured in font units) and its axes includes a <map> element.

@Lorp
Copy link
Owner Author

Lorp commented Jul 8, 2024

Note that when the avar1-based <map> elements for an axis map no more than min, default and max, then no avar1 data is necessary, since the relative placement of min, default and max is handled sufficiently by basic normalization math. However, the <map> element still serves as a mapping between designer calibration and OpenType calibration, allowing even avar2 mappings to be expressed in designer units rather than OpenType units.

@behdad please remind me if avar2 mappings can indeed be expressed in designer units, with the <map> mappings used to determine their values in the compiled font

@behdad
Copy link

behdad commented Jul 8, 2024

@behdad please remind me if avar2 mappings can indeed be expressed in designer units, with the mappings used to determine their values in the compiled font

That's correct of the .designspace format, yes. The binary of course has no notion of designer units still.

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