Skip to main content

core.fontDirectory

since 0.9.6
core.fontDirectoryJavaScriptfontDirectoryJavaScriptcore.fontDirectoryJSONfontDirectoryJSON

Description​

The full URL to the alphaTab font directory. AlphaTab will generate some dynamic CSS that is needed for displaying the music symbols correctly. For this it needs to know where the Web Font files of Bravura are. Normally alphaTab expects them to be in a font subfolder beside the script file. If this is not the case, this setting must be used to configure the path. Alternatively also a global variable ALPHATAB_FONT can be set on the page before initializing alphaTab.

fontDirectory: string | null = "${AlphaTabScriptFolder}/font/";