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

non-blocking warning messages about fonts #11

Open
illwieckz opened this issue Jun 8, 2017 · 4 comments
Open

non-blocking warning messages about fonts #11

illwieckz opened this issue Jun 8, 2017 · 4 comments

Comments

@illwieckz
Copy link
Member

On Linux:

$ ./updater2
QFontDatabase: Cannot find font directory /opt/Qt5.8-static-release/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.
@DolceTriade
Copy link
Member

It's ugly, but meh. I've tried to fix this, but this requires changing stuff in QT. My attempts to fix this have broken other things...

illwieckz pushed a commit to illwieckz/unvanquished-updater that referenced this issue Feb 22, 2019
qmake project file and Dockerfile. Updated build instructions in README.md
@slipher
Copy link
Contributor

slipher commented Jan 2, 2021

I also see this warning on Linux. But it seems to be spurious: we have Roboto-Regular.ttf in the resources directory and the typeface is displaying correctly.

@slipher
Copy link
Contributor

slipher commented Jan 5, 2021

On Mac there is the log message qt.qpa.fonts: Populating font family aliases took 650 ms. Replace uses of missing font family "Robot-Regular" with one that exists to avoid this cost. The text still looks correct, but maybe the one we ship is really not being used somehow.

@slipher
Copy link
Contributor

slipher commented Jan 6, 2021

I found that the font family name that we request needs to be Roboto rather than Roboto-Regular to fix the Mac warning. It turns out the Linux warning is unrelated and is still printed.

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

No branches or pull requests

3 participants