Easy3D 3.0.0
Loading...
Searching...
No Matches
TextLayout Struct Reference

Immutable draw commands and metrics produced for one text layout. More...

#include <text_layout.h>

Public Attributes

std::vector< DrawCommand > commands
 Draw commands containing glyph geometry and atlas snapshots.
 
Rect bounds = Rect(0, 0, 0, 0)
 Actual ink bounds in top-left framebuffer pixel coordinates.
 
float advance = 0
 Advance of the last line, including its alignment offset.
 
float line_height = 0
 Font line height in framebuffer pixels.
 

Detailed Description

Immutable draw commands and metrics produced for one text layout.


The documentation for this struct was generated from the following file: