Created attachment 470031 [details] HTML that shows too-large spacing between these Cyrillic characters In the attached HTML, I’ve set a Cyrillic string to use the “cursive” font. On Safari 17.3, the spacing between each Cyrillic character (П) is way too large. It almost looks like there are spaces between those characters, even though there aren’t any in the HTML. This is a change from Safari 17.2.1, where the spacing is more appropriate. It feels like maybe the “cursive” font doesn’t have a glyph for this (and other) Cyrillic characters, and the size for the fallback glyph is somehow not correct? I’ll attached renderings of this HTML in these two Safari versions so it’s easy to see the regression. And I’ll attach a rendering in Chrome, too, just in case.
Created attachment 470032 [details] Screenshots of the HTML in two Safari versions (and Chrome)
strangely I am unable to reproduce this on trunk (need to check the branch point for Safari 17.3 to see if I can repro it there)
I repro’d in Safari Technology Preview, but I didn’t try in trunk (sorry!)
(In reply to Brad Andalman from comment #3) > I repro’d in Safari Technology Preview, but I didn’t try in trunk (sorry!) Good to know, thanks! This may very well be something below WebKit then. Let me check.
I am not seeing it on a freshly installed Sonoma 14.3.1 either.
I just updated to Sonoma 14.3.1, and I still see the issue.
hmm, weird. Either way, I think it is more about fonts than inline layout. @Vitor, could you try to repro and/or figure out why Brad is seeing this, please?
<rdar://problem/123529842>
Hi Brad, thank you for reporting this. I also couldn't reproduce it on trunk on Sonoma 14.4. I'll have to investigate if there was a related regression on in a framework below WebKit.
I’ve tested on my main (non-VM) partition, initially running 14.3 and now 14.3.1. And this bug manifests. However, I cannot reproduce it on VMs running 13.6, 14.2.1, 14.3, 14.4b4. (This is why I assumed it was a regression. I first tested on my Ventura partition, and didn’t see the bug there.) So, what could be different about my main partition vs a clean install? Is the font used for fallback glyphs somehow different on one of my machines?
@Brad, if that is ok for you, could you inform what preferred language you were using when you have reproduced this bug? Thanks.
My preferred language on my Mac is English (but the HTML has its language set to Russian). The preferred language is the same on my Mac, as well as on all of my VMs.
Just for transparency, the reason I'm asking is because preferred language can affect font cascade on one of the frameworks we use for shaping. The whole list might affect it and not only the primary one, so if you could disclose the list you are using when reproducing the bug, this would be helpful. Are the lists different by any chances on the different partitions/VMs? Thanks!
Here’s the list of Preferred Languages on my (real) Mac: English — Primary Spanish (US) French English (US) English (UK) German Japanese Hebrew Italian Portuguese (Brazil) Dutch Russian Chinese, Simplified Korean Turkish Thai On the first VM I checked it’s just: English (US) - Primary. I set them all up the same, so I assume all my VMs have just that one Preferred Language.
Well, it does appear to be due to the Preferred Language list! If I delete Japanese from the list, the letter spacing appears as expected.
Aha, nice. Thank you for your help. I'll forward this internally to other colleagues responsive for the relevant framework.
Brad, do you mind filing a report through https://developer.apple.com/bug-reporting/? (and attach the "Feedback Assistant ID" here so that I can connect some rdars) Thank you.
No problem. Filed as FB13651054.
(In reply to Brad Andalman from comment #18) > No problem. Filed as FB13651054. Awesome, thank you.
(not sure if Moved is the right reason, but can't find anything better)