Handle color for glyphs that reference the foreground color
More precisely, include the fill color in the glyph key and
pass the color on. The cases where a color glyph does not
just use its own image color (like an emoji would) but
instead it is tinted by the current "foreground color" were
mostly handled, but the color was always black. Now the fill
color is passed on as expected.
Co-Authored-By: Claude Opus 4.8
Pick-to: 6.12
Change-Id: I4da0b84ca3a048a5dc797ba4f7ef6038ab8fb78b
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
| commit | 9630c38850bbfd46b8aca2d90f62b9898556548c |
| parent | d5b04675fd3104b0ddbddc22e6280e7845c5eceb |
| author | Laszlo Agocs <laszlo.agocs@qt.io> |
| committer | Laszlo Agocs <laszlo.agocs@qt.io> |
| commit time | Tue, 16 Jun 2026 08:19:28 +0000 |
- M src/canvaspainter/engine/qcdistancefieldglyphcache.cpp
- M src/canvaspainter/engine/qcrhicolorglyphcache.cpp
- M src/canvaspainter/engine/qcrhicolorglyphcache_p.h
- M tests/baseline/canvaspainting/CMakeLists.txt
- M tests/baseline/canvaspainting/canvaspainting_cpptests.cpp
- M tests/baseline/canvaspainting/canvaspainting_cpptests.h
- A tests/baseline/canvaspainting/fonts/QtEmojiTestFont-Regular.ttf
- M tests/baseline/canvaspainting/tst_baseline_canvaspainting.cpp