载入中...
搜索中...
未找到
eve::font::Font类 参考

Resource module for decoding TrueType / OpenType fonts via FreeType. Produces FontData (CPU metrics + glyph raster); GPU upload/draw is graphics'. 更多...

#include <Font.h>

类 eve::font::Font 继承关系图:
eve::Module

Public 成员函数

 Module_REG (Font)
 
 Font ()
 
 ~Font () override
 
FontDatanewFontData (Data *data, int size=16)
 Decode a font from in-memory bytes at the given pixel size.
 
FontDatanewFontDataFromFile (std::string path, int size=16)
 Decode a font from a VFS path (physfs) at the given pixel size.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 
virtual std::string getName () const =0
 

详细描述

Resource module for decoding TrueType / OpenType fonts via FreeType. Produces FontData (CPU metrics + glyph raster); GPU upload/draw is graphics'.

在文件 Font.h17 行定义.

构造及析构函数说明

◆ Font()

eve::font::Font::Font ( )
default

◆ ~Font()

eve::font::Font::~Font ( )
overridedefault

成员函数说明

◆ Module_REG()

eve::font::Font::Module_REG ( Font  )

◆ newFontData()

FontData * eve::font::Font::newFontData ( Data data,
int  size = 16 
)

Decode a font from in-memory bytes at the given pixel size.

参数
dataEncoded font bytes (e.g. FileData / ByteData).
sizePixel height (default 16).

在文件 Font.cpp25 行定义.

引用了 data , 以及 ptr.

◆ newFontDataFromFile()

FontData * eve::font::Font::newFontDataFromFile ( std::string  path,
int  size = 16 
)

Decode a font from a VFS path (physfs) at the given pixel size.

在文件 Font.cpp39 行定义.

引用了 eve::ResourceManager::get(), eve::ResourceManager::getInstance() , 以及 eve::ResourceManager::makeKey().


该类的文档由以下文件生成: