Sequence Diagrams: Message font weight with can only be bolder, not lighter
See original GitHub issueDescribe the bug In sequence diagrams, the font weight of messages has a look that feels bold. The problem is that we cannot use the configuration to make it normal, but it does respond if we want to make it bolder.
To Reproduce Render an arbitrary sequence diagram such as:
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!
use the following settings to toggle the messageFontWeight value between “normal” and “bold”. You can even try with “light”, “lighter” and it will remain looking bold (compared for example to the font used in the actors)
{
"sequence": {
"messageFontFamily": "arial",
"messageFontWeight": "normal",
"messageFontSize": 14
}
}
Expected behavior I would expect the text to be by default bold and allow users to set it to normal. But I get the feeling that “normal” has as “bold” feel and we can only make it bolder, not lighter.
Screenshots Using normal font weight
Using bold font weight
Desktop (please complete the following information):
- OS: MacOS BigSur (mermaid Cli v. 8.9.2)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top GitHub Comments
@beatrizsanchez There is a stroke setting that messes up the weight. We solved the issue by adding a css styling to the diagram:
I have the similar problem, but instead of using the words: normal, or bold, I had tried using numbers as the default value is 400. I’ve set it to 10, 50, 100, 200 and there is no effect.