8#include <unordered_map>
11typedef struct FT_FaceRec_* FT_Face;
22 Font(
const std::filesystem::path& path);
28 void load(
const std::filesystem::path& path);
39 void set_pixel_size(uint16_t size);
40 uint16_t get_pixel_size()
const;
42 std::unordered_map<uint64_t, Glyph> glyph_cache_;
Glyph get_glyph(unsigned long code, uint16_t size)
获取字形.
Definition: Font.cpp:44
void load(const std::filesystem::path &path)
从字体文件加载.
Definition: Font.cpp:35
图像.
Definition: Image.h:19