[coretext] Use fabs() to silence compiler warning

pull/565/head
Behdad Esfahbod 7 years ago
parent dd4b321b4a
commit 8923033eb2
  1. 2
      src/hb-coretext.cc

@ -80,7 +80,7 @@ hb_coretext_face_create (CGFontRef cg_font)
HB_SHAPER_DATA_ENSURE_DEFINE(coretext, face)
HB_SHAPER_DATA_ENSURE_DEFINE_WITH_CONDITION(coretext, font,
fabsf (CTFontGetSize((CTFontRef) data) -
fabs (CTFontGetSize((CTFontRef) data) -
(font->ptem <= 0 ? HB_CORETEXT_DEFAULT_FONT_SIZE : font->ptem)) <= .5)
/*

Loading…
Cancel
Save