HB_SHAPER_DATA_ENSURE_DEFINE(coretext, face)
HB_SHAPER_DATA_ENSURE_DEFINE_WITH_CONDITION(coretext, font,
abs (CTFontGetSize((CTFontRef) data) -
- (font->ptem < 0 ? HB_CORETEXT_FONT_SIZE : font->ptem)) < 1)
+ (font->ptem <= 0 ? HB_CORETEXT_FONT_SIZE : font->ptem)) < 1)
/*
* shaper face data
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;
+ float ptem = font->ptem <= 0 ? HB_CORETEXT_FONT_SIZE : font->ptem;
CTFontRef ct_font = create_ct_font (cg_font, ptem);