aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/variedtext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/variedtext.cpp')
-rw-r--r--gm/variedtext.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/gm/variedtext.cpp b/gm/variedtext.cpp
index e295cbc998..e33c40b743 100644
--- a/gm/variedtext.cpp
+++ b/gm/variedtext.cpp
@@ -52,10 +52,12 @@ protected:
SkScalar h = SkIntToScalar(size.fHeight);
static_assert(4 == SK_ARRAY_COUNT(fTypefaces), "typeface_cnt");
- fTypefaces[0] = sk_tool_utils::create_portable_typeface("sans-serif", SkTypeface::kNormal);
- fTypefaces[1] = sk_tool_utils::create_portable_typeface("sans-serif", SkTypeface::kBold);
- fTypefaces[2] = sk_tool_utils::create_portable_typeface("serif", SkTypeface::kNormal);
- fTypefaces[3] = sk_tool_utils::create_portable_typeface("serif", SkTypeface::kBold);
+ fTypefaces[0] = sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle());
+ fTypefaces[1] = sk_tool_utils::create_portable_typeface("sans-serif",
+ SkFontStyle::FromOldStyle(SkTypeface::kBold));
+ fTypefaces[2] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle());
+ fTypefaces[3] = sk_tool_utils::create_portable_typeface("serif",
+ SkFontStyle::FromOldStyle(SkTypeface::kBold));
SkRandom random;
for (int i = 0; i < kCnt; ++i) {