Load the default typeface
Use an existing freetype2 font.
Load a font from a file.
Get advance vector for the given glyph
Draw a line of text
Line height.
Instances of Typeface have to be comparable in a memory-safe manner.
Get initial pen position.
Cache for character sizes.
Underlying face.
Adjust line height. 1 uses the original line height, 2 doubles it.
List glyphs in the typeface.
Get initial pen position.
Get line height.
Width of an indent/tab character, in dots. Text sets indentWidth automatically.
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 a line of text. Note: This API is unstable and might change over time.
Instances of Typeface have to be comparable in a memory-safe manner.
Get the default Fluid typeface.
Default word splitter used by measure/draw.
Updated version of std.string.lineSplitter that includes trailing empty lines.
Measure space the given text would span. Uses dots as the unit.
Helper function
Draw text within the given rectangle in the image.
Helper function for typeface implementations, providing a "draw" function for tabs, adjusting the pen position automatically.
Represents a freetype2-powered typeface.