Bug 199736 - Be more robust regarding dot-prefixed fonts
Summary: Be more robust regarding dot-prefixed fonts
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-11 16:59 PDT by Myles C. Maxfield
Modified: 2021-06-04 15:35 PDT (History)
3 users (show)

See Also:


Attachments
Patch (3.14 KB, patch)
2019-07-11 17:28 PDT, Myles C. Maxfield
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-highsierra (3.71 MB, application/zip)
2019-07-11 18:36 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews105 for mac-highsierra-wk2 (3.24 MB, application/zip)
2019-07-11 18:45 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews114 for mac-highsierra (3.52 MB, application/zip)
2019-07-11 19:15 PDT, EWS Watchlist
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2019-07-11 16:59:26 PDT
https://bugs.webkit.org/show_bug.cgi?id=199653 happened because we encountered a system font that we didn't expect. The solution for that bug in particular was to start expecting that font. However, in the future we shouldn't completely fall over in that case. We should try to be more robust.

I think what this will actually entail, as far as code, is for all fonts that SystemFontDatabaseCoreText creates (and eventually end up in a FontFamilySpecificationCoreText) to be marked somehow as "This is a variable font where the instance has already been chosen". Then, in preparePlatformFont(), when we apply the weight/width/slope variations, we can skip that section on the marked fonts. Right now we do that check by asking "fontIsSystemFont(originalFont)" but instead we can use that mark. This still wouldn't be perfect, but it would probably as close as we could get without adding explicit support for each dot-prefixed font.
Comment 1 Myles C. Maxfield 2019-07-11 17:04:57 PDT
Actually, this is probably a trivial patch.
Comment 2 Myles C. Maxfield 2019-07-11 17:10:00 PDT
‘eyyyyy there’s already a flag that does exactly that! It looks like we should just set the flag and change the guard and be done!
Comment 3 Myles C. Maxfield 2019-07-11 17:28:22 PDT
Created attachment 373980 [details]
Patch
Comment 4 EWS Watchlist 2019-07-11 18:36:43 PDT
Comment on attachment 373980 [details]
Patch

Attachment 373980 [details] did not pass mac-ews (mac):
Output: https://webkit-queues.webkit.org/results/12720592

New failing tests:
media/media-document-audio-repaint.html
fast/text/font-face-local-system.html
media/video-no-audio.html
media/video-volume-slider.html
media/controls-styling.html
media/video-display-toggle.html
fast/text/backslash-to-yen-sign-euc.html
fast/text/system-font-features.html
media/controls-after-reload.html
Comment 5 EWS Watchlist 2019-07-11 18:36:44 PDT
Created attachment 373989 [details]
Archive of layout-test-results from ews103 for mac-highsierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-highsierra  Platform: Mac OS X 10.13.6
Comment 6 EWS Watchlist 2019-07-11 18:45:28 PDT
Comment on attachment 373980 [details]
Patch

Attachment 373980 [details] did not pass mac-wk2-ews (mac-wk2):
Output: https://webkit-queues.webkit.org/results/12720632

New failing tests:
fast/text/font-face-local-system.html
media/video-no-audio.html
media/video-volume-slider.html
media/video-display-toggle.html
fast/text/backslash-to-yen-sign-euc.html
fast/text/system-font-features.html
media/controls-after-reload.html
Comment 7 EWS Watchlist 2019-07-11 18:45:29 PDT
Created attachment 373990 [details]
Archive of layout-test-results from ews105 for mac-highsierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-highsierra-wk2  Platform: Mac OS X 10.13.6
Comment 8 EWS Watchlist 2019-07-11 19:15:30 PDT
Comment on attachment 373980 [details]
Patch

Attachment 373980 [details] did not pass mac-debug-ews (mac):
Output: https://webkit-queues.webkit.org/results/12720654

New failing tests:
media/media-document-audio-repaint.html
fast/text/font-face-local-system.html
media/video-no-audio.html
media/video-volume-slider.html
media/controls-styling.html
media/video-display-toggle.html
fast/text/backslash-to-yen-sign-euc.html
fast/text/system-font-features.html
media/controls-after-reload.html
Comment 9 EWS Watchlist 2019-07-11 19:15:32 PDT
Created attachment 373994 [details]
Archive of layout-test-results from ews114 for mac-highsierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-highsierra  Platform: Mac OS X 10.13.6
Comment 10 Myles C. Maxfield 2020-08-17 02:41:48 PDT
I think this is done c.c
Comment 11 Myles C. Maxfield 2021-06-04 15:35:03 PDT
This is done.