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

Detect failed DirectWrite fonts and fall back to GDI correctly #33

Open
kleuter opened this issue Jan 30, 2025 · 0 comments
Open

Detect failed DirectWrite fonts and fall back to GDI correctly #33

kleuter opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@kleuter
Copy link
Member

kleuter commented Jan 30, 2025

On some systems (Windows 7/8.1) Qt fails to initialize DirectWrite fonts database and all text is broken (see screenshots below).

Users reported of warning at QWindowsDirectWriteFontDatabase::populateFontDatabase():

Can't initialize IDWriteFactory6. Use GDI font engine instead.

The current workaround is run your app with the "-platform windows:nodirectwrite" command line or add the following to qt.conf:

[Platforms]
WindowsArguments = fontengine=freetype

Looks like Qt doesn't seem to do correct fallback automatically. This should be fixed.

Issue on Windows 7:

Image

Issue on Windows 8.1:

Image

@kleuter kleuter added bug Something isn't working help wanted Extra attention is needed labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant