diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-07 17:09:22 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-07 17:09:22 +0000 |
commit | 839702b61934914118ec557dd641be322eba3b5f (patch) | |
tree | a236520027e9a13b87d2b1df3f4e0f387b503ba5 /tests | |
parent | 488a337ea9673488530b01451470a2b89ec0a54f (diff) |
Add getFamilyNames to SkTypeface.
Committed: https://code.google.com/p/skia/source/detail?r=10589
Committed: https://code.google.com/p/skia/source/detail?r=10592
Committed: https://code.google.com/p/skia/source/detail?r=10608
Review URL: https://codereview.chromium.org/21716005
git-svn-id: http://skia.googlecode.com/svn/trunk@10615 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/FontNamesTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/FontNamesTest.cpp b/tests/FontNamesTest.cpp index ee0a1169f3..210a7cf310 100644 --- a/tests/FontNamesTest.cpp +++ b/tests/FontNamesTest.cpp @@ -164,7 +164,8 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { printf("[%s]\n", familyName.c_str()); } - SkAutoTDelete<SkTypeface::LocalizedStrings> familyNamesIter(typeface->getFamilyNames()); + SkAutoTUnref<SkTypeface::LocalizedStrings> familyNamesIter( + typeface->createFamilyNameIterator()); SkTypeface::LocalizedString familyNameLocalized; while (familyNamesIter->next(&familyNameLocalized)) { if (verbose) { |