Print messages using SkParagraph and new TextParagraph element
This commit is contained in:
parent
9ceb4e1b8a
commit
921e111255
9 changed files with 147 additions and 16 deletions
|
|
@ -29,6 +29,8 @@ FontData::FontData()
|
|||
mgr = SkFontMgr_New_Custom_Empty();
|
||||
#endif
|
||||
map["Roboto"] = mgr->makeFromFile("data/fonts/Roboto-variable.ttf");
|
||||
collection = sk_make_sp<skia::textlayout::FontCollection>();
|
||||
collection->setDefaultFontManager(mgr);
|
||||
}
|
||||
|
||||
FontData::~FontData() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue