[Webkit-unassigned] [Bug 215214] REGRESSION(r254506): [Freetype] Spektra variable font does not work properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 13 06:56:00 PDT 2020


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

Carlos Garcia Campos <cgarcia at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clopez at igalia.com
            Summary|[Freetype] Spektra variable |REGRESSION(r254506):
                   |font does not work properly |[Freetype] Spektra variable
                   |                            |font does not work properly

--- Comment #4 from Carlos Garcia Campos <cgarcia at igalia.com> ---
It turns out the problem is not the spektra font, not even the font variation implementation, it's the webkit-font-smoothing cairo implementation that breaks font variations. So, what's different in https://v-fonts.com/fonts/spektra is that webkit-font-smoothing is used. This regressed in r254506, when a font smoothing mode is passed to drawGlyphsToContext() a new cairo font options is set, using the default font options and changing the antialiasing. This means the font options from the font (the ones containing the variation settings), set in the context by cairo_set_scaled_font() are lost. We should copy the scaled font options instead, then set the antialiasing and apply them. I'll prepare a patch and try to add a test.

-- 
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/20200813/04e4f098/attachment.htm>


More information about the webkit-unassigned mailing list