use portable typeface for new gm

Change-Id: Idb2f23139fa14a334982e40b7ccaa7c7fd77d5dc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/209407
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Auto-Submit: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2019-04-21 18:15:23 -04:00 committed by Skia Commit-Bot
parent 264f9d23bd
commit 2ce364071e

View File

@ -401,7 +401,9 @@ static void draw_list(SkCanvas* canvas, sk_sp<SkTextBlob> blob, bool useDrawBehi
DEF_SIMPLE_GM(save_behind, canvas, 830, 670) {
SkFont font;
font.setTypeface(ToolUtils::create_portable_typeface());
font.setSize(30);
const char text[] = "This is a very long line of text";
auto blob = SkTextBlob::MakeFromText(text, strlen(text), font);