Fix unique local matching for sideloaded fonts

In Windows layout tests we populate a set of sideloaded fonts to the
FontCache. These were not covered by local unique matching, even though
some tests rely on for example matching src: local(Ahem). Fix this with
a test-only implementation based on retrieving the PostScript name from
FreeType.

This fixes
    http/tests/css/css-resources-referrer-srcdoc.html
    http/tests/css/css-resources-referrer.html
    http/tests/webfont/fontface-style-change.html
when enabling local unique font name matching.

Bug: 889864
Change-Id: I5284b2fc186cff03d2da9475ccd081cb3632dbc6
Reviewed-on: https://chromium-review.googlesource.com/c/1404089
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621957}
1 file changed