Initial Commit
This commit is contained in:
commit
6088fc29ed
978 changed files with 353647 additions and 0 deletions
17
src/FontData.hpp
Normal file
17
src/FontData.hpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
#include <include/core/SkFontMgr.h>
|
||||
#include <include/core/SkTypeface.h>
|
||||
#include <include/core/SkFont.h>
|
||||
#include <unordered_map>
|
||||
#include <Eigen/Dense>
|
||||
|
||||
using namespace Eigen;
|
||||
|
||||
struct FontData {
|
||||
FontData();
|
||||
sk_sp<SkFontMgr> mgr;
|
||||
std::unordered_map<std::string, sk_sp<SkTypeface>> map;
|
||||
~FontData();
|
||||
};
|
||||
|
||||
Vector2f get_str_font_bounds(const SkFont& font, const std::string& str);
|
||||
Loading…
Add table
Add a link
Reference in a new issue