Bug 74198 - [GTK][Dependencies] Unneeded fonts are loaded before testing
Summary: [GTK][Dependencies] Unneeded fonts are loaded before testing
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 12:18 PST by Zan Dobersek
Modified: 2017-03-11 10:44 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2011-12-09 12:18:16 PST
After changes in r101712[1] there are 67 tests loaded into fontconfig. Locally this causes plenty of font-related failures. If fonts in WebKitBuild/Dependencies/Root/webkitgtk-test-fonts are reduced down to only 18 files that were being loaded before r101712, the tests pass normally. I do not know how the bots did not pick up this misbehavior.

One way of fixing this would be to distribute only the required 18 font files.


[1] http://trac.webkit.org/changeset/101712/trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp
Comment 1 Martin Robinson 2011-12-09 12:25:15 PST
I think it's important that we understand why the results on your machine differ from the bots (and from my machine). It seems that that the additional fonts, just uncovered some other issue.
Comment 2 Zan Dobersek 2011-12-11 06:09:03 PST
So, me and Martin were investigating this quite a lot on Saturday. At one point it seemed as fontconfig caches were to blame since the tests passed after I removed ~/.fontconfig/, but this seemed to be only a one-time-thing, because now even that does not help anymore.

Anyhow, it seems that only tests with complex text are failing for me, and complex text being handled by Pango (AFAIK), I now firmly believe Pango is to blame. Lucky for me (if that's luck) I can reproduce these failures on two different Debian-based set-ups, Ubuntu 11.10 and Linux Mint 12.

The problem is that DejaVuSansMono.ttf gets somehow loaded and then used for complex text, causing failures. Removing this font file fixes this, but this seems not to be required on set-ups by other developers.

I'll look into Pango to see why exactly that font is loaded and how it can be avoided.
Comment 3 Martin Robinson 2011-12-11 08:16:10 PST
You might try the patch I've posted here: https://bugs.webkit.org/show_bug.cgi?id=73771 . It ensures that certain fonts are loaded during fallback.
Comment 4 Zan Dobersek 2011-12-11 09:33:22 PST
(In reply to comment #3)
> You might try the patch I've posted here: https://bugs.webkit.org/show_bug.cgi?id=73771 . It ensures that certain fonts are loaded during fallback.

Nope, this patch does not resolve the issue.
Comment 5 Martin Robinson 2015-05-07 18:23:24 PDT
Is this still an issue for you?