Web Inspector: [Freetype] Allow inspector to retrieve a list of system fonts
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jul 2015 14:51:09 +0000 (14:51 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jul 2015 14:51:09 +0000 (14:51 +0000)
commit6ffa76a267da4390e622f8c78bacc455e84f55d0
tree1ab1346ab9d0f0e796b84a8c68ecfde01556054a
parentf057f2099fb63591f4817b7e8e6125774095f27d
Web Inspector: [Freetype] Allow inspector to retrieve a list of system fonts
https://bugs.webkit.org/show_bug.cgi?id=147018

Reviewed by Carlos Garcia Campos.

Source/WebCore:

No new tests; unskipped inspector/css/get-system-fonts.html

* platform/graphics/freetype/FontCacheFreeType.cpp:
(WebCore::patternToFamilies): Added.
(WebCore::FontCache::systemFontFamilies): Implemented.
(WebCore::strongAliasesForFamily): Split some code off to patternToFamilies.

LayoutTests:

* inspector/css/get-system-fonts-expected.txt: Expect some free fonts to be missing....
* inspector/css/get-system-fonts.html: Check for some free fonts.
* platform/gtk/TestExpectations: Unskip the test.
* platform/gtk/inspector/css/get-system-fonts-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187583 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/css/get-system-fonts-expected.txt
LayoutTests/inspector/css/get-system-fonts.html
LayoutTests/platform/gtk/TestExpectations
LayoutTests/platform/gtk/inspector/css/get-system-fonts-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp