[cairo-bugs] [Bug 63771] New: Support rendering colored bitmap fonts in Quartz backend

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Apr 21 02:16:36 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=63771

          Priority: medium
            Bug ID: 63771
                CC: jfkthame at googlemail.com
          Assignee: vladimir at pobox.com
           Summary: Support rendering colored bitmap fonts in Quartz
                    backend
        QA Contact: cairo-bugs at cairographics.org
          Severity: enhancement
    Classification: Unclassified
                OS: Mac OS X (All)
          Reporter: kris at loopnest.org
          Hardware: Other
            Status: NEW
           Version: 1.12.14
         Component: quartz backend
           Product: cairo

Created attachment 78291
  --> https://bugs.freedesktop.org/attachment.cgi?id=78291&action=edit
Use CTFontDrawGlyphsPtr() when available, so that colored bitmap glyphs are
rendered correctly. Based on original patch authored by Jonathan Kew.

Currently, Cairo is unable to render glyphs from e.g. the Apple Color Emoji
font. In order to make this work, glyphs should be rendered using
CTFontDrawGlyphsPtr() instead of CGContextShowGlyphsWithAdvances().

Mozilla has support for this in their Cairo, see Mozilla bug 715798 for related
discussion. I am attaching a patch that is based on the Mozilla code authored
by Jonathan Kew (on CC), but modified so that it applies to Cairo master as of
April 21, 2013.

When used in combination with Pango/CoreText (this requires a Pango patch that
I will commit soon) the colored bitmap glyphs do render, but are slightly cut
off. I am not yet sure whether this should be solved in Pango or Cairo, but at
least the glyphs render now :)  Mozilla seem to be experiencing similar
problems, see e.g. Mozilla bug 804934.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20130421/a4d0ee22/attachment.html>


More information about the cairo-bugs mailing list