Fix units per em test.
authorbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 31 Jul 2012 21:39:05 +0000 (21:39 +0000)
committerbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 31 Jul 2012 21:39:05 +0000 (21:39 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@4873 2bbb7eff-a529-9590-31e7-b0007b416f81

tests/FontHostTest.cpp

index fcdeaba..ab0d58e 100644 (file)
@@ -27,7 +27,7 @@ static const struct TagSize {
 
 static void test_unitsPerEm(skiatest::Reporter* reporter, SkTypeface* face) {
     int upem = face->getUnitsPerEm();
-    REPORTER_ASSERT(reporter, upem > 0);
+    if (0 == upem) return;
 
     size_t size = face->getTableSize(kFontTableTag_head);
     if (size) {
@@ -87,7 +87,7 @@ static void test_tables(skiatest::Reporter* reporter) {
     static const char* const gNames[] = {
         NULL,   // default font
         "Arial", "Times", "Times New Roman", "Helvetica", "Courier",
-        "Courier New",
+        "Courier New", "Terminal", "MS Sans Serif",
     };
 
     for (size_t i = 0; i < SK_ARRAY_COUNT(gNames); ++i) {