tida.text

Module for rendering text using the FreeType library.

Members

Classes

Font
class Font

The object to load and use the font.

Symbol
class Symbol

The unit for rendering the text.

SymbolRender
class SymbolRender

Draw text object. An array of letters and offset attributes already rendered into the image is fed into the constructor, and the text is output from these data.

Text
class Text

An object for rendering drawing symbols.

Functions

cutFormat
T cutFormat(T symbols)

Cuts off formatting blocks.

initFontLibrary
void initFontLibrary()

Loads a library for loading and rendering fonts.

widthSymbols
int widthSymbols(Symbol[] text)

Shows the width of the displayed characters.

widthText
int widthText(T text, Font font)

Returns the size of the rendered text for the given font.

Static variables

_FTLibrary
FT_Library _FTLibrary;
Undocumented in source.

Templates

TypeChar
template TypeChar(T)

Determining the type of character depending on the type of the string.

Meta

Authors

License