summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 22:58:26 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 22:58:26 +0000
commit296402efe92f024b806adaf51f2c2e142d220892 (patch)
treee31d082d72025bd04a06a84d871b0a37d64b8270
parente295ff0698eda75aa7e2b887362310df59ff559e (diff)
downloadchromium_src-296402efe92f024b806adaf51f2c2e142d220892.zip
chromium_src-296402efe92f024b806adaf51f2c2e142d220892.tar.gz
chromium_src-296402efe92f024b806adaf51f2c2e142d220892.tar.bz2
linux: Add patterns for subpixel test to fonts.conf.
This updates our layout test fontconfig settings to define one font family that explicitly enables subpixel rendering and one that disables it. I'm using this in a test for a change that fixes https://bugs.webkit.org/show_bug.cgi?id=42220. BUG=chromium-os:4638 TEST=upcoming Review URL: http://codereview.chromium.org/2928011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52562 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/tools/test_shell/resources/fonts.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/resources/fonts.conf b/webkit/tools/test_shell/resources/fonts.conf
index 3167517..b75a932 100644
--- a/webkit/tools/test_shell/resources/fonts.conf
+++ b/webkit/tools/test_shell/resources/fonts.conf
@@ -202,4 +202,28 @@
</edit>
</match>
+ <match target="pattern">
+ <test name="family" compare="eq">
+ <string>SubpixelEnabledArial</string>
+ </test>
+ <edit name="family" mode="assign">
+ <string>Arial</string>
+ </edit>
+ <edit name="rgba" mode="assign">
+ <const>rgb</const>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family" compare="eq">
+ <string>SubpixelDisabledArial</string>
+ </test>
+ <edit name="family" mode="assign">
+ <string>Arial</string>
+ </edit>
+ <edit name="rgba" mode="assign">
+ <const>none</const>
+ </edit>
+ </match>
+
</fontconfig>