Skip to content

Missing FT_LOAD_NO_HINTING causes crashes #143

@heftig

Description

@heftig

Users are seeing crashes in FreeType 2.6.1 since HarfBuzz 1.0.5:
https://bbs.archlinux.org/viewtopic.php?pid=1570725

Backtrace of such a crash (Firefox on http://chess24.com):
http://pkgbuild.com/~heftig/backtrace.tar.xz

Adding FT_LOAD_NO_HINTING to the default load_flags solves the problem:

diff --git i/src/hb-ft.cc w/src/hb-ft.cc
index b695f81..2b11882 100644
--- i/src/hb-ft.cc
+++ w/src/hb-ft.cc
@@ -84,7 +84,7 @@ _hb_ft_font_create (FT_Face ft_face, bool unref)
   ft_font->ft_face = ft_face;
   ft_font->unref = unref;

-  ft_font->load_flags = FT_LOAD_DEFAULT;
+  ft_font->load_flags = FT_LOAD_DEFAULT | FT_LOAD_NO_HINTING;

   return ft_font;
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions