载入中...
搜索中...
未找到
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.
 
 ~Font () override
 Font.
 
FontData * newFontData (Data *data, int size=16)
 Decode a font from in-memory bytes at the given pixel size.
 
FontData * newFontDataFromFile (std::string path, int size=16)
 Decode a font from a VFS path (physfs) at the given pixel size.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

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

在文件 Font.h 第 19 行定义.

构造及析构函数说明

◆ Font()

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

Font.

◆ ~Font()

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

Font.

成员函数说明

◆ 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.cpp 第 25 行定义.

引用了 bytes, ptr, size , 以及 uri.

◆ 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.cpp 第 39 行定义.

引用了 eve::ResourceManager::get(), eve::ResourceManager::getInstance(), key, eve::ResourceManager::makeKey(), path, resource , 以及 size.


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