[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Wed Oct 11 13:29:39 UTC 2017
src/hb-coretext.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a4b46212c5e76494cfde5af6f299e08902aff0d5
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Wed Oct 11 15:29:22 2017 +0200
[coretext] Adjust font size check for 0
diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
index f43abb9f..8cfec1e3 100644
--- a/src/hb-coretext.cc
+++ b/src/hb-coretext.cc
@@ -73,7 +73,7 @@ hb_coretext_face_create (CGFontRef cg_font)
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
@@ -246,7 +246,7 @@ _hb_coretext_shaper_font_data_create (hb_font_t *font)
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);
More information about the HarfBuzz
mailing list