Skip to content
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

Warn on unavailable fonts, fall back onto GTK default font #118

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

SnoopJ
Copy link
Contributor

@SnoopJ SnoopJ commented Jul 15, 2023

Fixes #117

This changeset introduces a warning when drawing a graph that contains references to unavailable font families, as well as behavior to fall back onto GTK's default font. I've structured these changes into separate commits in case the fallback behavior is not wanted.

I've tested this on Ubuntu 20.04, where it works, but cannot seem to get a working installation of xdot on Windows to test it there, probably because I installed GTK4 according to the mingw guide, but I think xdot requires GTK3 specifically? I did at least test that the gtk-font-name property is defined and has a sane value on Windows, though.

@jrfonseca
Copy link
Owner

Looks good. Thank you.

@jrfonseca jrfonseca merged commit 685fc10 into jrfonseca:master Aug 1, 2023
2 checks passed
@SnoopJ SnoopJ deleted the feature/unavailable-fonts branch August 1, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xdot does not warn about missing fonts
2 participants