We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15c5ec7 commit de6b6a2Copy full SHA for de6b6a2
package/cpp/rnskia/dom/props/FontProp.h
@@ -31,10 +31,11 @@ class FontProp : public DerivedProp<SkFont> {
31
"Expected SkFont object or null/undefined for the Font property.");
32
}
33
} 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);
+ auto fm = SkFontMgr::RefDefault();
+ sk_sp<SkTypeface> typeface =
+ fm->legacyMakeTypeface(nullptr, SkFontStyle());
+ auto font = std::make_shared<SkFont>(SkFont(typeface));
38
+ font->setSize(14);
39
setDerivedValue(font);
40
41
0 commit comments