Simplify font-settings #989
Labels
Area: Development
Graph: Class
Graph: Flow
Graph: Gantt
Graph: Git
Graph: Sequence
Status: Approved
Is ready to be worked on
Status: Triage
Needs to be verified, categorized, etc
Type: Enhancement
New feature or request
One of the most persistant problems users have when integrating mermaid into their sites is setting the font properly, specifically so that bound are set correctly.
The root cause for this is related to font-settings. If the hidden rendering of the diagram has different font-settings then the final font settings the sizing of the boxes etc will differ.
It would be great if it was possieble to set the font in the configuration. Then the integrator only would need to provide a font-family to the page and set the option font-family in the mermaid options for the rendering to be correct.
This could potentially be set using css variables. So that the variables are being set from configuration at initialize.
The text was updated successfully, but these errors were encountered: