Skip to main content

alphaTab.RenderingResources

This public class contains central definitions for controlling the visual appearance.

 class RenderingResources

Properties​

barNumberColor​

The color to use for displaying the bar numbers above the music sheet.

barNumberColor: Color = rgb(200, 0, 0);

barNumberFont​

The font to use for displaying the bar numbers above the music sheet.

barNumberFont: Font = 11px Arial, sans-serif;

barSeparatorColor​

The color to use for rendering bar separators, the accolade and repeat signs.

barSeparatorColor: Color = rgb(34, 34, 17);

copyrightFont​

The font to use for displaying the songs copyright information in the header of the music sheet.

copyrightFont: Font = bold 12px Arial, sans-serif;

defaultFonts​

The default fonts for notation elements if not specified by the user.

static defaultFonts: Map<NotationElement, Font>;

directionsFont​

The font to use for displaying the directions texts.

directionsFont: Font = 14px Georgia, serif;

effectFont​

Ununsed, see deprecation note.

effectFont: Font = italic 12px Georgia, serif;

elementFonts​

The fonts used by individual elements. Check defaultFonts for the elements which have custom fonts. Removing fonts from this map can lead to unexpected side effects and errors. Only update it with new values.

readonly elementFonts: Map<NotationElement, Font>;

engravingSettings​

The SMuFL Metrics to use for rendering music symbols.

engravingSettings: EngravingSettings = alphaTab;

fingeringFont​

Unused, see deprecation note.

fingeringFont: Font = 14px Georgia, serif;

fretboardNumberFont​

The font to use for displaying the fretboard numbers in chord diagrams.

fretboardNumberFont: Font = 11px Arial, sans-serif;

graceFont​

The font to use for grace notation related texts in the music sheet.

graceFont: Font = 11px Arial, sans-serif;

inlineFingeringFont​

Unused, see deprecation note.

inlineFingeringFont: Font = 12px Georgia, serif;

mainGlyphColor​

The color to use for music notation elements of the primary voice.

mainGlyphColor: Color = rgb(0, 0, 0);

markerFont​

The font to use for section marker labels shown above the music sheet.

markerFont: Font = bold 14px Georgia, serif;

numberedNotationFont​

The font to use for displaying the numbered music notation in the music sheet.

numberedNotationFont: Font = 14px Arial, sans-serif;

numberedNotationGraceFont​

The font to use for displaying the grace notes in numbered music notation in the music sheet.

numberedNotationGraceFont: Font = 16px Arial, sans-serif;

scoreInfoColor​

The color to use for displaying the song information above the music sheets.

scoreInfoColor: Color = rgb(0, 0, 0);

secondaryGlyphColor​

The color to use for music notation elements of the secondary voices.

secondaryGlyphColor: Color = rgb(0,0,0,0.4);

staffLineColor​

The color to use for rendering the lines of staves.

staffLineColor: Color = rgb(165, 165, 165);

subTitleFont​

The font to use for displaying the songs subtitle in the header of the music sheet.

subTitleFont: Font = 20px Georgia, serif;

tablatureFont​

The font to use for displaying the guitar tablature numbers in the music sheet.

tablatureFont: Font = 13px Arial, sans-serif;

timerFont​

The font to use for displaying beat time information in the music sheet.

timerFont: Font = 12px Georgia, serif;

titleFont​

The font to use for displaying the songs title in the header of the music sheet.

titleFont: Font = 32px Georgia, serif;

wordsFont​

The font to use for displaying the lyrics information in the header of the music sheet.

wordsFont: Font = 15px Arial, sans-serif;