WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
174031
Safari always assumes mono-spaced square characters when loading fonts
https://bugs.webkit.org/show_bug.cgi?id=174031
Summary
Safari always assumes mono-spaced square characters when loading fonts
Dima Voytenko
Reported
2017-06-30 11:12:29 PDT
See example:
http://output.jsbin.com/jexixam/quiet
Initially, before the "Slow" font-face has been loaded or timed out, the sample text takes about 2.5-3x more space to layout (on iOS, it takes about 8-9 lines and once the font is loaded/timed out, it takes only 3 lines). In other words, the estimate is too rough. It appears that Safari assumes mono-wide square characters, which is very uncommon. It might be a better option to use a fallback font to estimate character layout before the desired font is loaded (as in `font-family: Slow, Arial` where "Arial" is already available as the fallback). This would also reduce the work the browser has to do in case of timeout.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-06-30 13:17:35 PDT
<
rdar://problem/33083545
>
Myles C. Maxfield
Comment 2
2017-07-05 14:57:00 PDT
I think I fixed this in
r216944
. Can you see if the problem still reproduces on a nightly build?
Dima Voytenko
Comment 3
2017-07-05 18:09:22 PDT
Does appear to be fixed in nightly. Thanks for the fix!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug