OpenSheetMusicDisplay
    Preparing search index...

    Class Label

    A text label on the graphical music sheet. It is used e.g. for titles, composer names, instrument names and dynamic instructions.

    Index

    Constructors

    Properties

    color: OSMDColor
    colorDefault: string
    font: Fonts
    fontFamily: string
    fontHeight: number
    fontStyle: FontStyles
    IsCreditLabel: boolean = false
    language: string

    The language of the text as a BCP 47 tag, e.g. "ja" or "zh-CN", read from MusicXML's xml:lang (undefined if not given). It is drawn as the text's language, so that e.g. a browser draws kanji with Japanese instead of Chinese glyphs.

    print: boolean
    text: string
    textAlignment: TextAlignmentEnum

    Methods