[Webkit-unassigned] [Bug 199736] New: Be more robust regarding dot-prefixed fonts
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 11 16:59:26 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=199736
Bug ID: 199736
Summary: Be more robust regarding dot-prefixed fonts
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Text
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mmaxfield at apple.com
CC: mmaxfield at apple.com
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190711/d398dcf8/attachment.html>
More information about the webkit-unassigned
mailing list