Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
-
-
78caba7ae637bf4b33631c3425eb92ec3946c99e (qtbase), 94570dc49aa6319c4811dcf37a29f179b6f64391 (qtbase), 35acf29a38d4b631dd27ce767466533223e8b2c4 (qtdeclarative)
Description
Color fonts based on SVG or COLR will have a concept of pen color, which can be referenced in the shapes. Since we currently draw all glyphs in the color font into the same cache and use pen color black when doing it, we essentially only support black for any font that happens to contain color glyphs, even for the regular glyphs in the font.
The first step to making this better is to make the pen color part of the cache key for these fonts and repaint the glyphs when it changes. It will have a performance impact of course, but only for fonts which currently do not work, and only if you change colors.
Attachments
Issue Links
- is required for
-
QTBUG-73097 All text with Source Code Pro font is rendered black on macOS 10.14 Mojave
- Closed
-
QTBUG-55096 [REG 5.6->5.7]: Segoe UI Emoji font is drawn in black (DW color fonts do not observe pen color)
- Closed
-
QTBUG-74762 Separate color glyphs from monochrome glyphs in glyph cache
- Open