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
|
|
@ -4,12 +4,14 @@
|
|||
#include <include/core/SkFont.h>
|
||||
#include <unordered_map>
|
||||
#include <Eigen/Dense>
|
||||
#include <modules/skparagraph/include/FontCollection.h>
|
||||
|
||||
using namespace Eigen;
|
||||
|
||||
struct FontData {
|
||||
FontData();
|
||||
sk_sp<SkFontMgr> mgr;
|
||||
sk_sp<skia::textlayout::FontCollection> collection;
|
||||
std::unordered_map<std::string, sk_sp<SkTypeface>> map;
|
||||
~FontData();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue