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:
Rich Kadel 2020-09-09 14:49:32 -07:00
parent c19b2370e4
commit f7aee330c7
3 changed files with 5 additions and 5 deletions

View file

@ -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);
};