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:
parent
264f9d23bd
commit
2ce364071e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user