[font] Move is_synthetic() to .hh

This commit is contained in:
Behdad Esfahbod committed 2025-04-22 23:01:28 -06:00
1 parent b9a1cd7011
commit 5d9cff80ec
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -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 ();
}
/**
+5
View File
@@ -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 ();