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

Invalid source glyph: 'undefined at required location' when building from .glyphs #1129

Closed
jenskutilek opened this issue Nov 18, 2024 · 3 comments

Comments

@jenskutilek
Copy link

Building the attached glyphs file results in this error:

fontc SudoRoman.glyphs
Invalid source glyph 'u': 'undefined at required location Normalized {YTDE: 1.00, wght: 0.00}'

SudoRoman.glyphs.zip

@anthrotype
Copy link
Member

hey Jens, thanks for the report!
it seems like there's a composite glyph called "tse-cy" that uses "u" as component; it also has some contours so it needs to be decomposed. However, the "u" base glyph define fewer source locations than the composite glyph "tse-cy" which uses it as a component. "tse-cy" in particular has an extra intermediate layer {400, -64} (a virtual master). In ufo2ft we call these "sparse composite glyphs" whereby locations for a composite and any of its components are not perfectly aligned, either more or less locations in either.
in fontmake (ufo2ft) we support these whereas in fontc we do not yet.
We have another issue open for this here: #954 (comment)
maybe we close this and continue over there

@jenskutilek
Copy link
Author

Thank you! It wasn't apparent to me that this was about a composite.

@anthrotype
Copy link
Member

Yes, the error message needs improving

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