diff options
| author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2025-01-15 15:39:16 +0100 |
|---|---|---|
| committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2025-01-20 07:39:32 +0100 |
| commit | 2e1db6541777ee076195ff9e793e4e83afd81539 (patch) | |
| tree | 84e3665006cf9365d19776dd50d93117bbb46349 /src/opengl/qopenglshaderprogram.cpp | |
| parent | b119fee87d5579dc1c4bfc2f508b0e3a75d69fa3 (diff) | |
FontConfig: Fix detection of color fonts
There were two mistakes in the code that intended to detect
if a specific font was a color font in the FontConfig database.
1. The "int n" parameter in FcPatternGet*() is not an array size,
but an index, so it should be 0 and not 1.
2. We need to add FC_COLOR to the list of properties in our pattern
when populating the database, otherwise we will just fail to match
it and none of the system fonts will be listed as color.
Pick-to: 6.9
Fixes: QTBUG-132377
Change-Id: Ib3c112e8a354abacd05679c62283a1f1abfb40ee
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/opengl/qopenglshaderprogram.cpp')
0 files changed, 0 insertions, 0 deletions
