https://bugs.documentfoundation.org/show_bug.cgi?id=104403

            Bug ID: 104403
           Summary: Support multi-colored fonts using COLR/CPAL tables
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: graphics stack
          Assignee: [email protected]
          Reporter: [email protected]

Description:
The latest version of the OpenType specification introduced few tables that
allow for having multi-colored glyphs.

The simplest of them is COLR/CPAL
(https://www.microsoft.com/typography/otspec/colr.htm,
https://www.microsoft.com/typography/otspec/cpal.htm) which uses layers of
normal glyphs and color palettes to assign colors to each.

It shouldn’s be hard to parse the tables in SalGraphics::DrawTextLayout() and
draw each layer glyph with its assigned color. We might want to wait until
HarfBuzz supports these fonts to avoid parsing the tables on our own.

This would allow supporting fonts like Amiri Quran Colored or several of the
new Emoji fonts cross-platform (Windows 8.1+ already supports this format,
though I don’t think we make use of that support).

Steps to Reproduce:
Try using Amiri Quran Colored font with Arabic text.

Actual Results:  
Text comes out using the foreground color.

Expected Results:
Text should use the colors defined in the font.


Reproducible: Always

User Profile Reset: 

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101
Firefox/50.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to