-
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
Update KernFeatureWriter to write separate lookups without IgnoreMarks #314
Conversation
…s flag if mark to base kerning exists.
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
I would have liked to have the chance to review this... |
It’s OK, I can do any fixups if needed before the next release. Thanks Zachary! |
My bad I rushed it. Cosimo please do the right thing
Marek
…On Fri, Feb 22, 2019 at 11:10 Cosimo Lupo ***@***.***> wrote:
It’s OK, I can do any fixups if needed before the next release. Thanks
Zachary!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#314 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMtJfx3qSpsJsWPSzJOZfmLo-tizcVBAks5vP8ImgaJpZM4azhQE>
.
|
@anthrotype Yes, please let me know what you think. I don't necessarily like everything about this, but it is an issue that needs to be addressed. This came up when we added the |
I suggest to review the repo settings - I believe you can ensure that all
PRs get a review now
|
That makes sense. Can you remind me which Noto font requires this patch? I'm not quite sure about the dist vs kern distinction that you make (still trying to figure out what the code does and why) |
One Noto font that needs this is Siddham. The whole So one thing I was thinking about here is how in Glyphs you can add custom contextual kerning. If the user explicitly defines a |
I don't get why you had to modify the Previously this method would simply parse the languagesystem statements and group the script/languages pairs by 1) whether they need "dist" or can use "kern" and 2) the script's dominant horizontal direction. These groupings were mutually exclusive (e.g. a script can either be dist-enabled or not, but not both). With your patch, the method now also checks wether I don't understand why you need to do that. |
what's wrong with outputting automatic dist feature even when user has some hand-coded kern feature? |
It should output automatic dist even when user has hand-coded kern. Either way I would expect both features if there is code for both features. Or code for one and automatic code for another. |
yeah, that's what I mean, the feature writer will add some automatically generated dist feature to the font, and whatever was there before (either 'kern' or none) stays untouched. That's the meaning of the mode "append". |
Isn't that what's happening now? I don't remember exactly what's going on, but you can do whatever is right. Sorry if it's a mess. I was expecting to have this conversation before it got merged, but that didn't work out. |
no problem, thanks! I'll run this through Noto Siddham and make sure it does the right thing. |
Basically cleaning up googlefonts#314 Also, updated expected test results; reverted unnecessary changes to _groupScriptsByTagAndDirection; removed unused addLookupReference function in ast module. fixup
Basically cleaning up googlefonts#314 Also, updated expected test results; reverted unnecessary changes to _groupScriptsByTagAndDirection; removed unused addLookupReference function in ast module.
To match Glyphs output for auto-generated lookups we need to determine if any kern pairs contain marks and then we don't want to use the IgnoreMarks flag on those lookups.
Also, some scripts get a
dist
feature by default, but it's entirely possible to have bothkern
anddist
in the same font. There are no 100% clear rules about this, but if there is a contextual kern lookup in Glyphs then it will be added askern
.