<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Support rendering colored bitmap fonts in Quartz backend"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=63771">63771</a>
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jfkthame@googlemail.com
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>vladimir@pobox.com
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Support rendering colored bitmap fonts in Quartz backend
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kris@loopnest.org
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.12.14
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>quartz backend
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=78291" name="attach_78291" title="Use CTFontDrawGlyphsPtr() when available, so that colored bitmap glyphs are rendered correctly. Based on original patch authored by Jonathan Kew.">attachment 78291</a> <a href="attachment.cgi?id=78291&action=edit" title="Use CTFontDrawGlyphsPtr() when available, so that colored bitmap glyphs are rendered correctly. Based on original patch authored by Jonathan Kew.">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=63771&attachment=78291'>[review]</a>
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>