Also fixed monospace font for d3-graphviz engine
VS code graphviz extensions use d3-graphviz, which supports `Courier` fontname but does not support `monospace`. This caused graphs to render poorly because the text sizes were wrong.
This commit is contained in:
parent
c19b2370e4
commit
f7aee330c7
3 changed files with 5 additions and 5 deletions
|
@ -634,7 +634,7 @@ where
|
|||
let mut graph_attrs = Vec::new();
|
||||
let mut content_attrs = Vec::new();
|
||||
if options.contains(&RenderOption::Monospace) {
|
||||
let font = r#"fontname="monospace""#;
|
||||
let font = r#"fontname="Courier, monospace""#;
|
||||
graph_attrs.push(font);
|
||||
content_attrs.push(font);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue