[Fontconfig-bugs] [Bug 63922] New: FcFreeTypeQueryFace fails on postscripts fonts loaded from memory
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Apr 25 07:21:24 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=63922
Priority: medium
Bug ID: 63922
Assignee: fontconfig-bugs at lists.freedesktop.org
Summary: FcFreeTypeQueryFace fails on postscripts fonts loaded
from memory
QA Contact: freedesktop at behdad.org
Severity: major
Classification: Unclassified
OS: All
Reporter: nfxjfg at gmail.com
Hardware: Other
Status: NEW
Version: unspecified
Component: library
Product: fontconfig
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20130425/59be7232/attachment.html>
More information about the Fontconfig-bugs
mailing list