<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 --- - FcFreeTypeQueryFace fails on postscripts fonts loaded from memory"
href="https://bugs.freedesktop.org/show_bug.cgi?id=63922">63922</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>fontconfig-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>FcFreeTypeQueryFace fails on postscripts fonts loaded from memory
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>freedesktop@behdad.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nfxjfg@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>library
</td>
</tr>
<tr>
<th>Product</th>
<td>fontconfig
</td>
</tr></table>
<p>
<div>
<pre>Trying to use a PostScript Type 1 font with FcFreeTypeQueryFace() fails. The
function returns NULL.
It appears the reason is that FcFreeTypeQueryFace uses FT_Load_Sfnt_Table to
hash the font data, which works for TrueType and OpenType fonts, but not for
other fonts. (It then proceeds trying to open the name as a file, which makes
absolute no sense for memory fonts.)
I fail to understand why not being able to hash the font would make fontconfig
try to open (essentially) random files and fail to provide the font to the
application.
Tested with git 03216ccf4ca0 and the latest release.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>