[cairo-bugs] [Bug 105035] New: Fails to load glyphs from bitmap-only font and NO_HINTING
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Feb 10 18:26:39 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=105035
Bug ID: 105035
Summary: Fails to load glyphs from bitmap-only font and
NO_HINTING
Product: cairo
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: freetype font backend
Assignee: david at freetype.org
Reporter: freedesktop at behdad.org
QA Contact: cairo-bugs at cairographics.org
As reported in:
https://github.com/googlei18n/noto-emoji/issues/36#issuecomment-356954653
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20180210/2b02f11e/attachment.html>
More information about the cairo-bugs
mailing list