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

markFeatureWriter: Support contextual anchors #869

Merged
merged 5 commits into from
Sep 19, 2024

Conversation

khaledhosny
Copy link
Collaborator

This merges glyphsLib’s ContextualMarkFeatureWriter subclass back into MarkFeatureWriter.

This merges glyphsLib’s ContextualMarkFeatureWriter subclass back into
MarkFeatureWriter. This is a mechanical merge with only the bare minimum
changes to get things working. Some bug fixes and refactoring will
happen in next commits.
Check `key` is not empty before accessing first character.
@khaledhosny khaledhosny marked this pull request as ready for review September 4, 2024 17:39
@anthrotype anthrotype removed their request for review September 4, 2024 17:42
@anthrotype
Copy link
Member

thanks Khaled! i'm happy when Simon is

…quested

We were trying to access non-existent features["mark"] when mark
feature was disabled.
Otherwise we end up with positioning statements that have duplicated
mark classes like this:

pos base a
   <anchor 200 200> mark @MC_top
   <anchor 100 200> mark @MC_top;

(one is the regular anchor, and the other is the contextual one). Which
makes no sense (feaLib shouldn’t probably allow the same mark class to
be used multiple times in the same statement).
@khaledhosny
Copy link
Collaborator Author

@simoncozens ping

@khaledhosny
Copy link
Collaborator Author

I’m going to merge this and #871 as I’m blocked by both. If there are issues, we can always fix them later.

@khaledhosny khaledhosny merged commit 6ad2ece into main Sep 19, 2024
9 checks passed
@khaledhosny khaledhosny deleted the contextual-mark-feature-writer branch September 19, 2024 09:19
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

Successfully merging this pull request may close these issues.

2 participants