Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
text_layout.hpp File Reference
#include <pulp/canvas/canvas.hpp>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  pulp::canvas::FontSpec
 Font style specification for text layout. More...
struct  pulp::canvas::TextRun
 A run of text with uniform style within a paragraph. More...
struct  pulp::canvas::GlyphPosition
 Result of laying out a line of text — position and metrics for each glyph. More...
struct  pulp::canvas::TextLine
 A single line of laid-out text. More...
class  pulp::canvas::GlyphArrangement
 Glyph arrangement — the result of text layout, containing positioned glyphs for each line. More...
struct  pulp::canvas::Parallelogram
 Parallelogram — a skewed rectangle defined by base point and two edge vectors. More...

Namespaces

namespace  pulp
namespace  pulp::canvas

Functions

GlyphArrangement pulp::canvas::layout_paragraph (const std::string &text, const FontSpec &font, float max_width=0, Color color=Color::rgba(1.0f, 1.0f, 1.0f))
 Layout a paragraph of text with word wrapping.