-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
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
Description
Description
Today alphaTab only supports some default fonts and can only do an approximate fallback to other fonts. Reason is mainly that the font sizes are needed in the WebWorker which currently does not have any possibility of measuring the font sizes. This is often needed for correct positioning of elements.
Possible Solutions
Before initiating the rendering in the worker, the UI thread needs to calculate the sizes of the configured fonts for measuring (e.g. using HTML5 canvas). We must consider that the configured fonts might be web fonts that are not yet available and hence we must use the font-detection system that is also used for alphaTab.
Current Workarounds
None
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.