Home | All Classes | Grouped Classes | Index | Search
Rejustifies lines in the GlyphBuffer to the center.
void justify_center( int center = 0); void justify_center( Range range, int center = 0);
Parameters:
Detailed description:
The CL_GlyphBuffer's contents (the glyphs vector, the font markers map, and the effects maps), if any, must not have been created/altered by anything but CL_Font::draw_to_gb() or CL_TextStyler::draw_to_gb() or the CL_GlyphBuffer justification functions or using CL_GlyphBuffer::remove to take glyphs off the end for this method to work.
This method ignores whitespace (glyphs not provided by the font) when justifying.
See also:
CL_Font | CL_GlyphBuffer | CL_TextStyler