mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[font] Move is_synthetic() to .hh
This commit is contained in:
1 parent
b9a1cd7011
commit
5d9cff80ec
2 files changed
+6
-1
No files matched your search
+1
-1
@@ -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 ();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
Reference in new issue
Block a user