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
[Bug]: Warning Font "Helvetica" not available on system
in QGIS >=3.22
#515
Comments
Font "Helvetica" font not available on system
in QGIS >=3.22
I think I've ruled that out using |
Ruled out style data in the GeoPackage by loading it outside of QGreenland and receiving no warning. |
With a breakpoint at the end of
Results in |
🎉 progress! I'm testing with one layer that uses the If I change the style This sounds possibly like a bug should be opened against the QGIS project. |
Font "Helvetica" font not available on system
in QGIS >=3.22Font "Helvetica" not available on system
in QGIS >=3.22
Issue description
From: QGR-134
TODO: Is the version specification correct? Maybe started in 3.18?
In older versions of QGIS, the error may manifest in a less visible way like this:
In newer versions, the error is surfaced to the viewport:
Workaround
Install
helvetica.ttf
(TODO: Find a safe source)Proposed solution
Require minimum version of QGIS 3.28, which is capable of downloading missing fonts. Pick an open source font that will be used on all operating systems.
Commentary
Matt Fisher
Found this issue on GitHub: qgis/QGIS#46206
Looks like this warning was promoted from being hidden in the symbology menu to the main viewer, but it's still just a warning. I think we need:
Trey Stafford
The "Helvetica" font seems to be set in the project file (qgreenland.qgs). I manually did a global replacement of all occurrences of "Helvetica" with "Sans Serif", which resolved the issue when opening the project in QGIS.
Unclear how this attribute gets set. It might be the QT library that's determining a default system font? Perhaps Helvetica is available in the docker image that we use to generate the project file?
I tried getting the default font using the PyQT library but was unsuccessful:
System information
The text was updated successfully, but these errors were encountered: