Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74762

Separate color glyphs from monochrome glyphs in glyph cache

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • GUI: Text handling
    • None
    • All

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes