-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make graphviz font configurable #76794
Conversation
Alternative to PR #rust-lang#76776. To change the graphviz output to use an alternative `fontname` value, add a command line option like: `rustc --graphviz-font=monospace`.
I specifically want to use an environment variable as opposed to a flag for this so I can "set it and forget it" in my I was going to say we should just fix this upstream: If |
I'll just add a commit on top of this to switch to environment variables instead and push it to #76794. You don't have to implement all my weird requirements 😄. |
I wish fixing it upstream was easy, but even if the project was still maintained, fixing this would involve updating all of the plugins that use it to the new version as well. And, just because I was curious, I've been researching where these font limitations originate. The https://gitlab.com/graphviz/graphviz/-/blob/116c41100e2a3ddaa84e9b5586509befe12f2e98/doc/fontfaq.txt |
[corrected] export RUSTFLAGS="--graphviz-font=monospace" |
No. I have to change
Presumably |
Sure, I'm not trying to break your workflow. Just exploring the options. Most of the compiler configs seem to be through flags, not as much through environment variables, but I can add support for an environment variable to this PR. |
b567edf
to
5b713ad
Compare
@bors delegate+ rollup r=me whenever you're confident. |
✌️ @richkadel can now approve this pull request |
Overrides the debugging_opts.graphviz_font setting.
5b713ad
to
3875abe
Compare
@bors r=ecstatic-morse rollup |
📌 Commit 3875abe has been approved by |
Rollup of 16 pull requests Successful merges: - rust-lang#75026 (Add array_windows fn) - rust-lang#76642 (Do not lint ignored private doc tests) - rust-lang#76719 (Change error message for ty param in const) - rust-lang#76721 (Use intra-doc links in `core::mem`) - rust-lang#76728 (Add a comment why `extern crate` is necessary for rustdoc) - rust-lang#76735 (Remove unnecessary `clone()`s in bootstrap) - rust-lang#76741 (Avoid printing dry run timings) - rust-lang#76747 (Add missing code examples in libcore) - rust-lang#76756 (fix a couple of stylistic clippy warnings) - rust-lang#76758 ([fuchsia] Propagate the userspace UTC clock) - rust-lang#76759 (Fix stabilization marker for future_readiness_fns) - rust-lang#76760 (don't lazily evaluate some trivial values for Option::None replacements (clippy::unnecessary_lazy_evaluations)) - rust-lang#76764 (Update books) - rust-lang#76775 (Strip a single leading tab when rendering dataflow diffs) - rust-lang#76778 (Simplify iter fuse struct doc) - rust-lang#76794 (Make graphviz font configurable) Failed merges: r? `@ghost`
Alternative to PR #76776.
To change the graphviz output to use an alternative
fontname
value,add a command line option like:
rustc --graphviz-font=monospace
.r? @ecstatic-morse