载入中...
搜索中...
未找到
Font.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Module.h"
4#include "font/FontData.h"
5
6#include <string>
7
8namespace eve {
9class Data;
10
11namespace font {
12
17class Font : public Module {
18public:
20
22 ~Font() override;
23
29 FontData *newFontData(Data *data, int size = 16);
30
34 FontData *newFontDataFromFile(std::string path, int size = 16);
35};
36
37} // namespace font
38} // namespace eve
CPU-side decoded font face (FreeType FT_Face + owned font bytes). Does not upload to GPU — rasterize ...
Definition FontData.h:23
Resource module for decoding TrueType / OpenType fonts via FreeType. Produces FontData (CPU metrics +...
Definition Font.h:17
FontData * newFontData(Data *data, int size=16)
Decode a font from in-memory bytes at the given pixel size.
Definition Font.cpp:25
FontData * newFontDataFromFile(std::string path, int size=16)
Decode a font from a VFS path (physfs) at the given pixel size.
Definition Font.cpp:39
~Font() override
Definition Build.cpp:11