WebKitTestRunner needs to support loading custom fonts (via the
authorjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Aug 2010 22:55:12 +0000 (22:55 +0000)
committerjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Aug 2010 22:55:12 +0000 (22:55 +0000)
commit17be041da2f5e0f7b4911502f0b96c4a47bd3813
treec21bb7ba2f4925b708ccf5422ff545109e11c38a
parent74707adb392ae0076e380b4cd4f9f32cef7e8e40
WebKitTestRunner needs to support loading custom fonts (via the
WEBKIT_TESTFONTS environment variable)
https://bugs.webkit.org/show_bug.cgi?id=42782

Reviewed by Adam Roben.

* WebKitTestRunner/InjectedBundle/win/ActivateFonts.cpp:
(WTR::fontsPath):
Copied from DRT code. Removed the fallback to DumpRenderTree.resources/,
as this directory doesn't appear to be created anymore.
(WTR::activateFonts):
Loop through the fonts, and call AddFontResourceExW() for each.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64601 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/WebKitTestRunner/InjectedBundle/win/ActivateFonts.cpp