载入中...
搜索中...
未找到
Font.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5#include "common/Module.h"
6#include "font/FontData.h"
7
8#include <string>
9
10namespace eve {
11class Data;
12
13namespace font {
14
20public:
22
26 ~Font() override;
27
33 FontData *newFontData(Data *data, int size = 16);
34
38 FontData *newFontDataFromFile(std::string path, int size = 16);
39};
40
41} // namespace font
42} // namespace eve
#define EVENGINE_API_BACKENDS
Definition Export.h:108
std::string path
Definition PlayHost.cpp:110
float size
Definition TreeMesh.cpp:156
Data public API.
Definition Data.h:8
EVENGINE_API_FOUNDATION public API.
Definition Module.h:46
CPU-side decoded font face (FreeType FT_Face + owned font bytes). Does not upload to GPU — rasterize ...
Definition FontData.h:25
Resource module for decoding TrueType / OpenType fonts via FreeType. Produces FontData (CPU metrics +...
Definition Font.h:19
~Font() override
Font.
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16