TextAttributes: {
    color: string | null;
    default-x: number | null;
    default-y: number | null;
    dir: "ltr" | "rtl" | "lro" | "rlo" | null;
    font-family: string | null;
    font-size: "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large" | number | null;
    font-style: "normal" | "italic" | null;
    font-weight: "normal" | "bold" | null;
    letter-spacing: "normal" | number | null;
    line-through: number | null;
    overline: number | null;
    rotation: number | null;
    underline: number | null;
    xml:lang: string | null;
}

Type declaration

  • color: string | null

    Indicates the color of an element.

  • default-x: number | null

    Changes the computation of the default horizontal position. If the parent is a <notehead-text> element, the origin is changed relative to the left-hand side of the note or the musical position within the bar. Otherwise, the origin is changed relative to the start of the first measure on the system, and these values are used when the current measure or a succeeding measure starts a new system. Positive x is right and negative x is left.

  • default-y: number | null

    Changes the computation of the default vertical position. The origin is changed relative to the top line of the staff. Positive y is up and negative y is down.

  • dir: "ltr" | "rtl" | "lro" | "rlo" | null

    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-family: string | null

    A comma-separated list of font names.

  • font-size: "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large" | number | null

    One of the CSS sizes or a numeric point size.

  • font-style: "normal" | "italic" | null

    Normal or italic style.

  • font-weight: "normal" | "bold" | null

    Normal or bold weight.

  • letter-spacing: "normal" | number | null

    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-through: number | null

    Number of lines to use when striking through text.

  • overline: number | null

    Number of lines to use when overlining text.

  • rotation: number | null

    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.

  • underline: number | null

    Number of lines to use when underlining text.

  • xml:lang: string | null

    Specifies the language used in the element content.

Generated using TypeDoc