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

safari issues #21

Open
mustafa0x opened this issue Aug 14, 2024 · 6 comments
Open

safari issues #21

mustafa0x opened this issue Aug 14, 2024 · 6 comments

Comments

@mustafa0x
Copy link

Is safari support planned? I noticed that unfortunately it has many rendering problems.

image

image

جزاكم الله خيرا

@aminanan
Copy link
Member

This happens when there are a cursive lookup with the RIGHT_TO_LEFT flag set and a cursive lookup with the RIGHT_TO_LEFT flag clear.

As an example suppose we have the following cursive feature.

feature curs {  
  lookup cursivejoinrtl;  # RIGHT_TO_LEFT flag set between Hah, Meem, Yeh and final Meem
  lookup rehwawcursivecpp; # RIGHT_TO_LEFT flag clear between Waw and Hah
} curs;

The word وحميم is rendered as follows with HarfBuzz (I changed the position of Hah to highlight the problem).

Capture

With Safari it is rendered as follows.

Capture

If the order of the lookups is reversed the result with Safari is as follows (This remains correct with HarfBuzz).

Capture

The OpenType specification doesn't describe exactly what to do in such a situation but it seems to be a bug with Safari especially for the first case.

@mustafa0x
Copy link
Author

جزاك الله خيرا

I can file this at https://bugs.webkit.org. Is there a reduced test case, or should I file an issue and attach the entire font file?

@khaledhosny
Copy link

Is this a Safari-specific issue or (more likely) a CoreText issue and so would affect more macOS apps (like TextEdit or Pages)?

@aminanan
Copy link
Member

I tested it with TextEdit in macOS Sonoma 14.3. I had the same problems. It seems to be related to CoreText.

@khaledhosny
Copy link

I’d report it Apple using feedback assistant. They usually fix these kinds of issue when reported.

@aminanan
Copy link
Member

Thanks @khaledhosny. I reported a bug to Apple using the Feedback Assistant.

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

No branches or pull requests

3 participants