aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/FontNamesTest.cpp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2014-08-25 12:00:49 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-25 12:00:49 -0700
commita6785ccb540b1b752ab536cdf579a698eadbf7d2 (patch)
tree475c911f255876f32a25aa365522d8e9331170a1 /tests/FontNamesTest.cpp
parent5fc226641a0926dddbf70ba784f344881f4c05b9 (diff)
Add a working SkFontMgr_fontconfig.
R=tomhudson@google.com, reed@google.com, mtklein@google.com Author: bungeman@google.com Review URL: https://codereview.chromium.org/396143004
Diffstat (limited to 'tests/FontNamesTest.cpp')
-rw-r--r--tests/FontNamesTest.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/FontNamesTest.cpp b/tests/FontNamesTest.cpp
index e4966b07a7..5c314e4e7e 100644
--- a/tests/FontNamesTest.cpp
+++ b/tests/FontNamesTest.cpp
@@ -152,10 +152,6 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) {
set->getStyle(j, &fs, &sname);
SkAutoTUnref<SkTypeface> typeface(set->createTypeface(j));
- if (NULL == typeface.get()) {
- //TODO: SkFontMgr_fontconfig always returns NULL?
- continue;
- }
SkString familyName;
typeface->getFamilyName(&familyName);
@@ -169,7 +165,7 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) {
while (familyNamesIter->next(&familyNameLocalized)) {
if (verbose) {
SkDebugf("(%s) <%s>\n", familyNameLocalized.fString.c_str(),
- familyNameLocalized.fLanguage.c_str());
+ familyNameLocalized.fLanguage.c_str());
}
}