<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [PATCH] Quartz font backend compilation for iOS"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97895">97895</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[PATCH] Quartz font backend compilation for iOS
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

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

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>peter@peter-b.co.uk
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=126730" name="attach_126730" title="iOS build support patch v1 (needs further work)">attachment 126730</a> <a href="attachment.cgi?id=126730&action=edit" title="iOS build support patch v1 (needs further work)">[details]</a></span>
iOS build support patch v1 (needs further work)

Cairo's Quartz font backend is quite useful when compiling Cairo for iOS. 
However, on iOS, the ApplicationServices framework is not available.  This
mostly doesn't present a problem; the CoreGraphics and CoreText frameworks
contain everything that's needed for the backend to be helpful.

The Cairo master branch source code won't compile unmodified for iOS because it
assumes the availability of ApplicationServices and the ATSUFontID type
definition.

This patch modifies the Quartz font backend to omit the
ApplicationServices-dependent code depending on three feature macros:

- CAIRO_HAS_QUARTZ_APPLICATION_SERVICES
- CAIRO_HAS_QUARTZ_CORE_GRAPHICS
- CAIRO_HAS_QUARTZ_ATSUFONTID

We do not use the Autotools-based build system for our solution, because it
doesn't understand iOS SDKs, and so this patch doesn't make any build system
changes to define these macros as necessary.

However, I am keen to get this patch (or some variant) of this patch upstream,
because I believe it would be useful to other Cairo users, and am happy to help
with any changes required.</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>