Use the page font instead of Arial for Mermaid diagrams
Categories
(Developer Infrastructure :: Source Documentation, enhancement)
Tracking
(firefox161 fixed)
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
Mermaid diagrams in firefox-source-docs render their text in Arial (Liberation Sans on Linux), beside the page's Lato body text. The redux-color theme asks for "Recursive Variable", which neither the docs nor sphinx-rtd-theme load, so the browser falls back.
Setting themeVariables.fontFamily in mermaid_init_config to sphinx-rtd-theme's body font stack fixes it for every mermaid diagram type in both color schemes. Diagram widths move by between -4.7% and +1.8% across the tree's diagrams, and no label overflows its box. ZenUML hardcodes Helvetica and stays as it is.
| Assignee | ||
Comment 1•25 days ago
|
||
Dropping fontSize changes no diagram's layout: sphinx-rtd-theme's p rule already kept flowchart, state and class labels at 16px, and Mermaid 12 draws sequence diagrams at a fixed 16px.
Updated•25 days ago
|
Updated•25 days ago
|
Comment 3•24 days ago
|
||
| bugherder | ||
Description
•