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

[cursFeatureWriter] Respect direction suffix when setting lookupflag #876

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

khaledhosny
Copy link
Collaborator

By default we set RightToLeft lookupflag for RTL glyphs, which is a sane default. But, despite the flags name, it is not directly related to glyph directionality, rather it defines which glyphs stay at their natural position and which gets shifted. When the flag is set, glyphs to the right gets shifted, otherwise glyphs to the left.

GlyphsApp supports controlling the flag by adding .RTL or .LTR suffix to the anchor names, so we now support this as well.

See for examples of this:
https://forum.glyphsapp.com/t/is-there-a-solution-for-vertical-kerning-in-arabic-script/26571/39

By default we set RightToLeft lookupflag for RTL glyphs, which is a sane
default. But, despite the flags name, it is not directly related to
glyph directionality, rather it defines which glyphs stay at their
natural position and which gets shifted. When the flag is set, glyphs to
the right gets shifted, otherwise glyphs to the left.

GlyphsApp supports controlling the flag by adding `.RTL` or `.LTR`
suffix to the anchor names, so we now support this as well.

See for examples of this:
https://forum.glyphsapp.com/t/is-there-a-solution-for-vertical-kerning-in-arabic-script/26571/39
@khaledhosny khaledhosny merged commit 862a390 into main Oct 10, 2024
9 checks passed
@khaledhosny khaledhosny deleted the curs-writer-flag branch October 10, 2024 13:24
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