载入中...
搜索中...
未找到
Font.cpp
浏览该文件的文档.
Definition Exception.h:14
virtual std::string getName() const =0
Resource * get(std::string key)
Get the cached resource for key; on a miss, load it through the registered IAssetReloader providers a...
Definition Resource.cpp:56
static std::string makeKey(const std::string &path, const std::string &query="")
Build a cache key from a path and optional ?query parameters.
Definition Resource.cpp:30
Resource is a game object that is managed by the ResourceManager. It can be loaded from a file or gen...
Definition Resource.h:35
Data buffer paired with a filename (used for type identification).
Definition FileData.h:12
CPU-side decoded font face (FreeType FT_Face + owned font bytes). Does not upload to GPU — rasterize ...
Definition FontData.h:23
int getGlyphHeight(int codepoint) const
Definition FontData.cpp:230
int getGlyphAdvance(int codepoint) const
Definition FontData.cpp:233
int getGlyphBearingX(int codepoint) const
Definition FontData.cpp:231
image::ImageData * newGlyphImageData(int codepoint)
Rasterize one glyph to RGBA8 ImageData (RGB white, A from FreeType gray). Returns a 0x0 ImageData if ...
Definition FontData.cpp:235
int getGlyphBearingY(int codepoint) const
Definition FontData.cpp:232
float getKerning(int leftCodepoint, int rightCodepoint) const
Definition FontData.cpp:167
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()
~Font() override
Definition Build.cpp:11