MusicXML 4.1 Draft
< >elements
@attributes
MusicXML 4.1 Draft>Elements>The <text> element

The <text> element

Parent element: <lyric>

The <text> element represents a syllable or portion of a syllable for lyric text underlay. A hyphen in the element content should only be used for an actual hyphenated word.

Content

xs:string

Attributes

NameTypeRequired?(Default)Description
colorcolorNoIndicates the color of an element.
Indicates the color of an element.
dirtext-directionNoThe text-direction attribute is used to adjust and override the Unicode bidirectional text algorithm, similar to the Directionality data category in the W3C Internationalization Tag Set recommendation. The default value is ltr. This attribute is typically used by applications that store text in left-to-right visual order rather than logical order. Such applications can use the lro value to better communicate with other applications that more fully support bidirectional text.
The text-direction attribute is used to adjust and override the Unicode bidirectional text algorithm, similar to the Directionality data category in the W3C Internationalization Tag Set recommendation. The default value is ltr. This attribute is typically used by applications that store text in left-to-right visual order rather than logical order. Such applications can use the lro value to better communicate with other applications that more fully support bidirectional text.
font-familyfont-familyNoA comma-separated list of font names.
A comma-separated list of font names.
font-sizefont-sizeNoOne of the CSS sizes or a numeric point size.
One of the CSS sizes or a numeric point size.
font-stylefont-styleNoNormal or italic style.
Normal or italic style.
font-weightfont-weightNoNormal or bold weight.
Normal or bold weight.
letter-spacingnumber-or-normalNoSpecifies text tracking. Values are either normal, which allows flexibility of letter-spacing for purposes of text justification. or a number representing the number of ems to add between each letter. The number may be negative in order to subtract space. The value is normal if not specified.
Specifies text tracking. Values are either normal, which allows flexibility of letter-spacing for purposes of text justification. or a number representing the number of ems to add between each letter. The number may be negative in order to subtract space. The value is normal if not specified.
line-throughnumber-of-linesNoNumber of lines to use when striking through text.
Number of lines to use when striking through text.
overlinenumber-of-linesNoNumber of lines to use when overlining text.
Number of lines to use when overlining text.
rotationrotation-degreesNoUsed to rotate text around the alignment point specified by the halign and valign attributes. Positive values are clockwise rotations, while negative values are counter-clockwise rotations.
Used to rotate text around the alignment point specified by the halign and valign attributes. Positive values are clockwise rotations, while negative values are counter-clockwise rotations.
underlinenumber-of-linesNoNumber of lines to use when underlining text.
Number of lines to use when underlining text.
xml:langxml:langNoSpecifies the language used in the element content.
Specifies the language used in the element content.

Examples

This element is used in the following examples:

<assess> and <player><elision><end-line><end-paragraph><extend> (Lyric)<ipa><lyric><syllabic>Tutorial: Après un rêve