From 269cf1ca82c34c6f6ea126e7333743e5c381453b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 11 Oct 2017 15:24:22 +0200 Subject: [PATCH] Correctly initialize ptem --- src/hb-font.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-font.cc b/src/hb-font.cc index 888420792..a43656d9d 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -1124,6 +1124,7 @@ hb_font_create (hb_face_t *face) font->parent = hb_font_get_empty (); font->face = hb_face_reference (face); font->klass = hb_font_funcs_get_empty (); + font->ptem = -1; font->x_scale = font->y_scale = hb_face_get_upem (face);