-
Notifications
You must be signed in to change notification settings - Fork 43
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
[outlineCompiler] Make space the 2nd glyph unless its order is explicitly set #881
Conversation
khaledhosny
commented
Oct 12, 2024
•
edited
Loading
edited
- Fixes For color fonts, make GID 1 the .null glyph #880
The second commit is just in case someone wants this level of control, but I have no strong opinion here and I can do without it. |
a949db9
to
a1f60b8
Compare
I would only move the space to second place if there is not already an explicit glyphOrder in the UFO. |
as for glyphsLib, which always sets a glyphOrder in the exported master UFOs (whether implicit in the order of the glyphs in the source file, or with an explicit glyphOrder custom parameter), it can deal itself with those Glyphs-specific things. It may decide to always place the space in second place (like Glyphs does now?) regardless of what the stated glyphOrder is, unless the user uses "no, really I mean it" custom parameter.. |
Makes sense. I’ll do that. |
9b4b5b0
to
6ac2555
Compare
Done. |
6ac2555
to
99f500f
Compare
This does not work. We don’t actually know if |
cf7cc4b
to
353501d
Compare
I think it is working now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM besides minor comments
014779a
to
bab3a73
Compare
8ca4101
to
5d2a388
Compare
much better now, thanks! |
5d2a388
to
2792574
Compare
@khaledhosny where did you see that "Keep GlyphOrder" custom parameter in Glyphs.app? I can't find it in either font custom parameters or variable font export settings. I am using Glyphs.app 3.3 (3324) |
https://forum.glyphsapp.com/t/custom-glyphorder-is-not-respected/31555/4 |
but it's not there... weird |
Yes, even if you type the name it does not recognize it and just adds a generic custom parameter, I guess it didn’t make it to release. |
the first glyph (at index 0). Also, if "space" is present in the font and | ||
missing from glyphOrder, force it to be the second glyph (at index 1). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm now thinking that this doesn't check that the glyph named 'space' is actually empty before putting it at index 1, and the whole point of doing this (which isn't even mentioned here, I suppose it should) was to make sure COLRv0 fonts work in old Windows. Maybe it should just move the first empty glyph it finds to second place, whatever its name. I think that's what gftools-fix does.