denigma 4.0.0
Loading...
Searching...
No Matches
denigma::classify::text::Run Struct Reference

One stretch of formatted text in a single font, holding either text or music glyphs. More...

#include <formatted_text.h>

Public Member Functions

bool isGlyphRun () const noexcept
 True when the run is music glyphs rather than text.
 

Public Attributes

std::string text
 Visible UTF-8 text of the run. For a glyph run, the source characters the glyphs came from.
 
musx::dom::ResolvedFontInfo font
 Document-independent snapshot of the run's font.
 
std::vector< std::string > glyphNames
 One SMuFL glyph name per code point when the run is music glyphs; empty for a text run.
 
std::optional< Insertinsert
 The insert the run was substituted for, when it was. Such a run is never merged with its neighbors.
 

Detailed Description

One stretch of formatted text in a single font, holding either text or music glyphs.


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