Skip to content

Support for any font  #266

@Danielku15

Description

@Danielku15

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 renderingplatform-javascriptRelated to the JavaScript version of alphaTabstate-acceptedThis is a valid topic to work on.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions