Added font picker to text edit gui
This commit is contained in:
parent
644655544c
commit
d4492807fe
10 changed files with 243 additions and 25 deletions
|
|
@ -30,7 +30,7 @@ FontData::FontData()
|
|||
#endif
|
||||
map["Roboto"] = mgr->makeFromFile("data/fonts/Roboto-variable.ttf");
|
||||
collection = sk_make_sp<skia::textlayout::FontCollection>();
|
||||
collection->setDefaultFontManager(mgr);
|
||||
collection->setDefaultFontManager(mgr, {SkString{"Roboto"}});
|
||||
}
|
||||
|
||||
FontData::~FontData() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue