diff options
Diffstat (limited to 'tests/TextBlobTest.cpp')
-rw-r--r-- | tests/TextBlobTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/TextBlobTest.cpp b/tests/TextBlobTest.cpp index 238d7340b8..cec7028056 100644 --- a/tests/TextBlobTest.cpp +++ b/tests/TextBlobTest.cpp @@ -421,6 +421,12 @@ static sk_sp<SkImage> render(const SkTextBlob* blob) { * Then draw the new instance and assert it draws the same as the original. */ DEF_TEST(TextBlob_serialize, reporter) { + // test requires at least the default font + if (!SkTypeface::MakeDefault()) { + SkDebugf("TextBlob_serialize: missing default typeface\n"); + return; + } + SkTextBlobBuilder builder; sk_sp<SkTypeface> tf0; |