<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 - Fails to load glyphs from bitmap-only font and NO_HINTING"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105035">105035</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Fails to load glyphs from bitmap-only font and NO_HINTING
          </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>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>freetype font backend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>david@freetype.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>freedesktop@behdad.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>As reported in:

  <a href="https://github.com/googlei18n/noto-emoji/issues/36#issuecomment-356954653">https://github.com/googlei18n/noto-emoji/issues/36#issuecomment-356954653</a>

Looks like if a font is bitmap-only, and NO_HINTING is requested, we fail to
load the glyphs.  Checking the code I see that is indeed the case in the
FcPattern codepath:


↦       /* Force embedded bitmaps off if no hinting requested */ 
↦       if (ft_options.base.hint_style == CAIRO_HINT_STYLE_NONE) 
↦         bitmap = FcFalse; 

↦       if (!bitmap) 
↦           ft_options.load_flags |= FT_LOAD_NO_BITMAP; 

The fact that it's only done in that codepath is arbitrary to begin with. 
Probably need to move somewhere closer to the actual glyph loading, and
excepted if the FT_Face has no outlines.</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>