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

coretext: force LTR font shaping #1740

Merged
merged 2 commits into from
May 8, 2024
Merged

coretext: force LTR font shaping #1740

merged 2 commits into from
May 8, 2024

Conversation

mitchellh
Copy link
Contributor

@mitchellh mitchellh commented May 8, 2024

Fixes #1737

We don't support RTL so if the shaper gives us RTL coordinates our rendering gets really messed up. We're tracking minimal RTL support in #1442. This behavior now matches Harfbuzz.

This PR also contains a bunch of adding CoreText APIs I tried but didn't end up using. I'm keeping them here in case we ever use them in the future.

Before

CleanShot 2024-05-08 at 10 13 25@2x

After

CleanShot 2024-05-08 at 10 13 08@2x

@mitchellh mitchellh merged commit e037c55 into main May 8, 2024
33 checks passed
@mitchellh mitchellh deleted the ct-rtl branch May 8, 2024 17:19
mitchellh added a commit that referenced this pull request Nov 3, 2024
Fixes #2570
Related to #1740

See #1740 for details.
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.

Arabic text isn't rendered properly
1 participant