voxelman.graphics.font.textmesher

Members

Aliases

StyleId
alias StyleId = ubyte
Undocumented in source.

Functions

alignMeshedText
void alignMeshedText(P params, Alignment halign, Alignment valign, ivec2 area)

Applies offset to all previously meshed glyphs Number of meshed glyphs is taken from TextRectSink

clipTexturedRect
bool clipTexturedRect(frect geometryRect, frect atlasRect, irect scissors)
Undocumented in source. Be warned that the author may not have intended to support it.
measureText
void measureText(P params, T textRange)

Changes params size and cursor

meshText
void meshText(P params, T textRange)
void meshText(P params, T textRange, S styleRange)

Modifies params.cursor and params.sink

meshTextAligned
void meshTextAligned(P params, T textRange, Alignment halign, Alignment valign, ivec2 area)
Undocumented in source. Be warned that the author may not have intended to support it.
meshTextf
void meshTextf(P params, string fmt, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
rectAlignmentOffset
ivec2 rectAlignmentOffset(ivec2 textSize, Alignment halign, Alignment valign, ivec2 area)
Undocumented in source. Be warned that the author may not have intended to support it.
tabWidth
int tabWidth(int tabSize, int column)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

StyledCodePoint
struct StyledCodePoint
Undocumented in source.
TextMesherParams
struct TextMesherParams
Undocumented in source.
TextMesherSink
struct TextMesherSink

Output range for use with formattedWrite, etc

TextRectSink
struct TextRectSink

Sink for glyps that uses TexturedBatch2d internally

TextStyle
struct TextStyle
Undocumented in source.
TextStyleZip
struct TextStyleZip(T, S)
Undocumented in source.

Meta

Authors

Andrey Penechko.