From db7a73ce0781d1fec0235e419ac448565dcfc8ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20R=C3=B6ttsches?= Date: Wed, 11 Oct 2017 13:24:39 +0200 Subject: [PATCH] [coretext] Fix build --- src/hb-coretext.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 26cc07c9e..9b680abf6 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -241,7 +241,8 @@ hb_coretext_face_get_cg_font (hb_face_t *face) hb_coretext_shaper_font_data_t * _hb_coretext_shaper_font_data_create (hb_font_t *font) { - if (unlikely (!hb_coretext_shaper_face_data_ensure (font->face))) return NULL; + hb_face_t *face = font->face; + if (unlikely (!hb_coretext_shaper_face_data_ensure (face))) return NULL; CGFontRef cg_font = (CGFontRef) HB_SHAPER_DATA_GET (face); float ptem = font->ptem < 0 ? HB_CORETEXT_FONT_SIZE : font->ptem; @@ -289,7 +290,7 @@ CTFontRef hb_coretext_font_get_ct_font (hb_font_t *font) { if (unlikely (!hb_coretext_shaper_font_data_ensure (font))) return NULL; - return (CTFontRef)_SHAPER_DATA_GET (font); + return (CTFontRef)HB_SHAPER_DATA_GET (font); }