Skip to content

Commit de6b6a2

Browse files
committed
💚
1 parent 15c5ec7 commit de6b6a2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

package/cpp/rnskia/dom/props/FontProp.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ class FontProp : public DerivedProp<SkFont> {
3131
"Expected SkFont object or null/undefined for the Font property.");
3232
}
3333
} else {
34-
auto fm = SkFontMgr::RefDefault();
35-
sk_sp<SkTypeface> typeface = fm->legacyMakeTypeface(nullptr, SkFontStyle());
36-
auto font = std::make_shared<SkFont>(SkFont(typeface));
37-
font->setSize(14);
34+
auto fm = SkFontMgr::RefDefault();
35+
sk_sp<SkTypeface> typeface =
36+
fm->legacyMakeTypeface(nullptr, SkFontStyle());
37+
auto font = std::make_shared<SkFont>(SkFont(typeface));
38+
font->setSize(14);
3839
setDerivedValue(font);
3940
}
4041
}

0 commit comments

Comments
 (0)