From 5d9cff80ec73617e8093fbd9245e854980f8b60d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 22 Apr 2025 23:01:28 -0600 Subject: [PATCH] [font] Move is_synthetic() to .hh --- src/hb-font.cc | 2 +- src/hb-font.hh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 ();