-
Notifications
You must be signed in to change notification settings - Fork 261
Allow customization of Web Font Sources #2113
Copy link
Copy link
Labels
area-renderingEverything related to the renderingEverything related to the renderingplatform-javascriptRelated to the JavaScript version of alphaTabRelated to the JavaScript version of alphaTabstate-acceptedThis is a valid topic to work on.This is a valid topic to work on.
Milestone
Metadata
Metadata
Assignees
Labels
area-renderingEverything related to the renderingEverything related to the renderingplatform-javascriptRelated to the JavaScript version of alphaTabRelated to the JavaScript version of alphaTabstate-acceptedThis is a valid topic to work on.This is a valid topic to work on.
Type
Fields
Give feedbackNo fields configured for Feature.
Projects
Status
Done
#2112
Currently alphaTab expects a
fontDirectorypointing to a location where the Bravura files are location. It would be better if the location for the web font is configurable more flexible.While most devs will likely use one static set of URLs we need to be prepared for multiple different font configurations. At some point we should support alternative fonts to Bravura anyhow (see #1949).
For now it should be sufficient to:
smuflFontSource: Map<string, FontFileFormat>+enum FontFileFormat { EmbeddedOpenType, Woff, Woff2, OpenType, Svg }smuflFontSourceusing the current defaults (usingfontDirectory) if not provided.<style>element per uniquesmuflFontSourcevalues.