-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
When selecting font, attempt to use system-based font before internally supplied version #4594
Conversation
ddb4github
commented
Mar 3, 2022
•
edited
Loading
edited
- Delete buildin DejaVu font files
- Use OS provided DejaVu font files, append default for RHEL/CentOS/SLES/Ubuntu
@netniV, what do you think? Does not consider Windows for sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think using the system supplied font is useful, though if it is behind our version of the font, this may cause issues. However, since the packaged versions of cacti will remove fonts in favour of the system supplied ones, I think people like @paulgevers would cheer this change on. It doesn't apply to windows currently, as we seem to hard code to the Arial font on windows, though we could use a font_paths array and a font_names array to combine them into a search path.
Also, if this is related to an issue, I don't recall seeing one and there should be an issue tracker number and a CHANGELOG
709579c
to
7da16bb
Compare
Let's make sure Windoz is covered. |
I would also like to keep the currently included font as backup. |
ded1eb1
to
b8664ca
Compare
Jing, make the Cacti supplied Dejavu don't the last choice in the array. Did you check that windows actually includes this font. Maybe not by default. I'll look after I'm fully alert. |
Okay, I must not be awake. This is perfect now. 👍 |
b8664ca
to
582d1aa
Compare
Everything looks right. Thanks for your contribution Jing! |