std::vector< std::string > Lines
Lines of text from a single string (usually split on ' ').
std::vector< float > line_widths_in_pixels
Width of each line of text in pixels.
const FreeTypeFontTransformData ComputeTransformData(const Font &font, const LayoutOptions &options, const TextSize &text_size)
Sets the scale and translation fields of the LayoutData instance with the scale and translation requi...
math::Vector2f rect_size_in_pixels
Size of the entire text rectangle in pixels.
This derived Font class represents a FreeType2 font.
const Layout LayOutText(const FreeTypeFont &font, bool use_icu, const Lines &lines, const FreeTypeFontTransformData &transform_data)
Returns a Layout populated by glyphs representing lines of text.
This struct defines parameters affecting layout of a single text string when passed to BuildLayout()...
float text_height_in_pixels
Height of the text inside the rectangle in pixels.
float first_line_above_baseline
Max height above baseline of the first line of text (depends on contents!).
float line_height_in_pixels
Height of a single line of text in pixels.
const TextSize ComputeTextSize(const FreeTypeFont &font, const LayoutOptions &options, const Lines &lines)
Computes the size of text and returns it as a TextSize instance.
A Layout instance specifies how glyphs are arranged to form text.
TextSize contains information about the size of multi-line text.
Font is a base class for implementation-specific representations of fonts.