提交 1beacdde 编写于 作者: B Behdad Esfahbod

Minor

上级 e88d47b7
...@@ -101,10 +101,10 @@ _hb_cg_font_release (void *data) ...@@ -101,10 +101,10 @@ _hb_cg_font_release (void *data)
} }
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,
fabs (CTFontGetSize((CTFontRef) data) - coretext_font_size_from_ptem (font->ptem)) <= .5 fabs (CTFontGetSize((CTFontRef) data) - coretext_font_size_from_ptem (font->ptem)) <= .5
) );
static CTFontDescriptorRef static CTFontDescriptorRef
get_last_resort_font_desc (void) get_last_resort_font_desc (void)
...@@ -1152,8 +1152,8 @@ fail: ...@@ -1152,8 +1152,8 @@ fail:
* AAT shaper * AAT shaper
*/ */
HB_SHAPER_DATA_ENSURE_DEFINE(coretext_aat, face) HB_SHAPER_DATA_ENSURE_DEFINE(coretext_aat, face);
HB_SHAPER_DATA_ENSURE_DEFINE(coretext_aat, font) HB_SHAPER_DATA_ENSURE_DEFINE(coretext_aat, font);
/* /*
* shaper face data * shaper face data
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
#include "hb-directwrite.h" #include "hb-directwrite.h"
HB_SHAPER_DATA_ENSURE_DEFINE (directwrite, face) HB_SHAPER_DATA_ENSURE_DEFINE (directwrite, face);
HB_SHAPER_DATA_ENSURE_DEFINE (directwrite, font) HB_SHAPER_DATA_ENSURE_DEFINE (directwrite, font);
/* /*
......
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
#include "hb-shaper-impl.hh" #include "hb-shaper-impl.hh"
HB_SHAPER_DATA_ENSURE_DEFINE(fallback, face) HB_SHAPER_DATA_ENSURE_DEFINE(fallback, face);
HB_SHAPER_DATA_ENSURE_DEFINE(fallback, font) HB_SHAPER_DATA_ENSURE_DEFINE(fallback, font);
/* /*
......
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
**/ **/
HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, face) HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, face);
HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, font) HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, font);
/* /*
......
...@@ -255,7 +255,7 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner, ...@@ -255,7 +255,7 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner,
* shaper face data * shaper face data
*/ */
HB_SHAPER_DATA_ENSURE_DEFINE(ot, face) HB_SHAPER_DATA_ENSURE_DEFINE(ot, face);
struct hb_ot_face_data_t {}; struct hb_ot_face_data_t {};
...@@ -275,7 +275,7 @@ _hb_ot_shaper_face_data_destroy (hb_ot_face_data_t *data) ...@@ -275,7 +275,7 @@ _hb_ot_shaper_face_data_destroy (hb_ot_face_data_t *data)
* shaper font data * shaper font data
*/ */
HB_SHAPER_DATA_ENSURE_DEFINE(ot, font) HB_SHAPER_DATA_ENSURE_DEFINE(ot, font);
struct hb_ot_font_data_t {}; struct hb_ot_font_data_t {};
......
...@@ -119,7 +119,8 @@ HB_SHAPER_DATA_ENSURE_FUNC(shaper, object) (hb_##object##_t *object) \ ...@@ -119,7 +119,8 @@ HB_SHAPER_DATA_ENSURE_FUNC(shaper, object) (hb_##object##_t *object) \
} \ } \
} \ } \
return data != nullptr && (void *) data != HB_SHAPER_DATA_INVALID; \ return data != nullptr && (void *) data != HB_SHAPER_DATA_INVALID; \
} } \
static_assert (true, "") /* Require semicolon. */
/* For embedding in face / font / ... */ /* For embedding in face / font / ... */
......
...@@ -314,8 +314,8 @@ struct range_record_t { ...@@ -314,8 +314,8 @@ struct range_record_t {
unsigned int index_last; /* == end - 1 */ unsigned int index_last; /* == end - 1 */
}; };
HB_SHAPER_DATA_ENSURE_DEFINE(uniscribe, face) HB_SHAPER_DATA_ENSURE_DEFINE(uniscribe, face);
HB_SHAPER_DATA_ENSURE_DEFINE(uniscribe, font) HB_SHAPER_DATA_ENSURE_DEFINE(uniscribe, font);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册