[coretext] Recreate CTFont if pt size changed

Attempt at fixing #360
This commit is contained in:
Dominik Röttsches 2017-10-11 13:32:38 +02:00
parent db7a73ce07
commit a5ebe1d4ae
1 changed files with 3 additions and 2 deletions

View File

@ -71,8 +71,9 @@ hb_coretext_face_create (CGFontRef cg_font)
HB_SHAPER_DATA_ENSURE_DEFINE(coretext, face)
HB_SHAPER_DATA_ENSURE_DEFINE(coretext, font)
HB_SHAPER_DATA_ENSURE_DEFINE_WITH_CONDITION(coretext, font,
abs (CTFontGetSize((CTFontRef) data) -
(font->ptem < 0 ? HB_CORETEXT_FONT_SIZE : font->ptem)) < 1)
/*
* shaper face data