|
|
@ -30,6 +30,7 @@ |
|
|
|
#include "hb-shaper-impl-private.hh" |
|
|
|
#include "hb-shaper-impl-private.hh" |
|
|
|
|
|
|
|
|
|
|
|
#include "hb-coretext.h" |
|
|
|
#include "hb-coretext.h" |
|
|
|
|
|
|
|
#include <math.h> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef HB_DEBUG_CORETEXT |
|
|
|
#ifndef HB_DEBUG_CORETEXT |
|
|
@ -79,8 +80,8 @@ hb_coretext_face_create (CGFontRef cg_font) |
|
|
|
|
|
|
|
|
|
|
|
HB_SHAPER_DATA_ENSURE_DEFINE(coretext, face) |
|
|
|
HB_SHAPER_DATA_ENSURE_DEFINE(coretext, face) |
|
|
|
HB_SHAPER_DATA_ENSURE_DEFINE_WITH_CONDITION(coretext, font, |
|
|
|
HB_SHAPER_DATA_ENSURE_DEFINE_WITH_CONDITION(coretext, font, |
|
|
|
abs (CTFontGetSize((CTFontRef) data) - |
|
|
|
fabsf (CTFontGetSize((CTFontRef) data) - |
|
|
|
(font->ptem <= 0 ? HB_CORETEXT_DEFAULT_FONT_SIZE : font->ptem)) < 1) |
|
|
|
(font->ptem <= 0 ? HB_CORETEXT_DEFAULT_FONT_SIZE : font->ptem)) <= .5) |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* shaper face data |
|
|
|
* shaper face data |
|
|
|