[Webkit-unassigned] [Bug 183210] [FreeType] Remove FontPlatformData fallbacks

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 28 09:14:49 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=183210

--- Comment #1 from Carlos Garcia Campos <cgarcia at igalia.com> ---
Ok, I know why. When using the fallbacks we use FcFontSort() to ge the list of patterns for all fonts in the system, but sorted by better matching the given pattern. But we are passing True for the trim parameter, which for some reason makes dejavu sans bold to not be included in the list. That's why the best match is not bold. Passing False to FcFontSort also makes the test use the bold font, but then, again, it's effectively the same than using FcFontMatch directly. Another interesting thing is that the pattern we use has the default font settings, so it's always using dejavu sans, I would expect in the tests to end up using liberation. And Liberation is probably the first one in the sorted set, but since out pattern has dejavu it ends up matching dejavu.

-- 
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/20180228/4fb3d9f9/attachment.html>


More information about the webkit-unassigned mailing list