diff options
| author | Rich Kadel <richkadel@google.com> | 2020-09-09 14:49:32 -0700 |
|---|---|---|
| committer | Rich Kadel <richkadel@google.com> | 2020-09-09 14:49:32 -0700 |
| commit | f7aee330c70ef787d2224adb49804343978dd145 (patch) | |
| tree | f5c6d68e079b78d5c155a68a5f27b2718289ab9f /compiler/rustc_graphviz | |
| parent | c19b2370e419c0be7b46cc9ae7767773560a072c (diff) | |
| download | rust-f7aee330c70ef787d2224adb49804343978dd145.tar.gz rust-f7aee330c70ef787d2224adb49804343978dd145.zip | |
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.
Diffstat (limited to 'compiler/rustc_graphviz')
| -rw-r--r-- | compiler/rustc_graphviz/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_graphviz/src/lib.rs b/compiler/rustc_graphviz/src/lib.rs index 252e3416865..29ec3572016 100644 --- a/compiler/rustc_graphviz/src/lib.rs +++ b/compiler/rustc_graphviz/src/lib.rs @@ -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); }; |
