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
inout(T) cutFormat(T symbols)

Cuts off formatting blocks.

fromSymInfo
Symbol fromSymInfo(Font font, FontSymbolInfo syInfo, Color!ubyte color)
Undocumented in source. Be warned that the author may not have intended to support it.
initFontLibrary
void initFontLibrary()

Loads a library for loading and rendering fonts.

widthSymbols
inout(int) widthSymbols(Symbol[] text)

Shows the width of the displayed characters.

widthText
inout(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.

Structs

FontSymbolInfo
struct FontSymbolInfo
Undocumented in source.

Templates

TypeChar
template TypeChar(T)

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

Meta