Default word splitter used by measure/draw.
Get advance vector for the given glyph. Uses dots, not pixels, as the unit.
Set font scale. This should be called at least once before drawing. Text sets DPI automatically.
Get curently set DPI.
Draw text within the given rectangle in the image.
Draw a line of text. Note: This API is unstable and might change over time.
Helper function for typeface implementations, providing a "draw" function for tabs, adjusting the pen position automatically.
List glyphs in the typeface.
Width of an indent/tab character, in dots. Text sets indentWidth automatically.
Get line height.
Measure space the given text would span. Uses dots as the unit.
Instances of Typeface have to be comparable in a memory-safe manner.
Get initial pen position.
Set the font size. This should be called at least once before drawing. Text, if used, sets this automatically.
Get the default Fluid typeface.
Helper function
Updated version of std.string.lineSplitter that includes trailing empty lines.
Measure space the given text would span. Uses dots as the unit.
Low-level interface for drawing text. Represents a single typeface.
Unlike the rest of Fluid, Typeface uses screen-space dots directly, instead of fixed-size pixels. Consequently, DPI must be specified manually.
See: fluid.text.Text for an interface on a higher level.