Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
Description
Color fonts may also contain perfectly normal monochrome glyphs. We currently draw these into a RGB cache and treat them as color glyphs, which is a waste of memory. As more and more fonts start adding a small set of emoji color glyphs, this will be increasingly problematic.
In the font engine, we should detect the ranges that map to color glyphs. This involves actually reading the COLR, SBIX, CBDT and SVG tables to figure it out. The glyphs mapped in these tables should be drawn into an RGB cache, but all the other glyphs should be put in an A8 cache like before.
There is probably quite a bit of replumbing needed in both Qt Quick and the raster paint engine to make this work, but it should provide good value for the effort.
Attachments
Issue Links
- depends on
-
QTBUG-74761 Include pen color in RGB glyph caches
- Closed
- 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