-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Issue with vert
feature not working in macOS/iOS
#8695
Comments
I used the test html data that you provided and was not able to repro the bug on a Mac system (testing in both Firefox / Chrome) on 12.7.5. Can you clarify which version of Mac OS that you are encountering the issue on? (note that in the images below, the ellipsis are not rotating, which is probably a shaping limitation, as I verified that glyph is present and rotates under the vert feature). |
Thanks for the comments. So a couple of notes. Safari does not allow users to manually turn on or off the Using Clearly Safari is looking for something that is not present. Interesting, Klee itself is working fine, but the upstream version of Wen Kai also fails. |
Ned pointed me to that it may be the issue is that not all languagesystems have |
I reworked the feature code and was able to resolve the issue with the As for the quote marks, that appears to be an issue across the board with Chrome, and I'm observing that behavior in many other fonts as well :/. Anyway, I think I'll go ahead and submit a PR fix for LXGW WenKai to address the problem. Thanks! |
Thank you. What was the exact issue with the |
There wasn’t an issue with the The way that the feature is set up, However, my suspicion is that Safari applied the OpenType features prior to actually shaping the text or knowing what language is being used, and that it assumed latn. So as a result it didn’t see any The fix was to remove all language-specific rules from all the OT features, and only include DFLT. I didn’t see anything that looked like it needed to differ between the languagesystems so this was the simplest way to enact a change. |
I see. Since FontCreator requires at least one language and script, will including |
I think so? Couldn't you also just do |
The font in use is LXGW WenKai TC。
Describe the bug
When displaying LXGW WenKai TC on Apple devices (eg Safari and Google Chrome on iPad), the OpenType
vert
feature is not triggered. This caused vertical punctuations to fail to rotate. This issue does not appear on Windows/Linux devices.iPad Safari:
To Reproduce
Open the HTML file in Apple devices and compare to Windows/Linux devices.
Replication HTML
Expected behavior
Punctuations in OpenType
vert
feature are triggered.Google Chrome on Windows:
The text was updated successfully, but these errors were encountered: