[Webkit-unassigned] [Bug 77437] freetype port: font fallback mechanism can try harder

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 19 09:25:44 PDT 2015


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

--- Comment #11 from Martin Robinson <mrobinson at webkit.org> ---
(In reply to comment #10)
> Hi there, it is a bit unclear to me what the status of this bug/patch is.
> I came here from a fairly interesting discussion on
> https://bugzilla.gnome.org/show_bug.cgi?id=752533
> 
> The problem is if you have this:  font-family: Arial,Helvetica,sans-serif;
> 
> Epiphany+WebKit goes through that list, and as Arial and Helvetica are not
> found on the system, when it hits "sans-serif" it then asks for GNOME's
> default "sans" font, which happens to be DejaVu Sans Book; the problem with
> that is that on Linux systems, there are often much better matches
> available, such as Liberation Sans (metrically equivalent to Arial, thus
> preserving the page's intended layout). So what I'm suggesting is that when
> you hit the generic "sans-serif" CSS rule, you ask fc-match for the font
> corresponding to the first non-generic font of the list (so, in a way, a
> "second pass"). Is this what this bug report & patch is about? 

I believe it doesn't ask for GNOME's default first, but WebKit's default. This can be configured using the API for GTK+ http://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html#webkit-settings-get-sans-serif-font-family and there is also a setting in Epiphany. I think that if WebKit isn't using the font from the API settings than that is a bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150719/35d3f027/attachment.html>


More information about the webkit-unassigned mailing list