diff --git a/src/hb-font.cc b/src/hb-font.cc index cced57063..77fd68e53 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -2615,7 +2615,7 @@ hb_font_get_ptem (hb_font_t *font) hb_bool_t hb_font_is_synthetic (hb_font_t *font) { - return font->x_embolden || font->y_embolden || font->slant; + return font->is_synthetic (); } /** diff --git a/src/hb-font.hh b/src/hb-font.hh index 6094cd0e6..c07af9829 100644 --- a/src/hb-font.hh +++ b/src/hb-font.hh @@ -841,6 +841,11 @@ struct hb_font_t return false; } + bool is_synthetic () const + { + return x_embolden || y_embolden || slant; + } + void changed () { float upem = face->get_upem ();