mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[ot-math] Fix build with HB_NO_MATH
This commit is contained in:
parent
e31721b5cf
commit
2c4bc83244
1 changed files with 2 additions and 0 deletions
|
@ -1107,6 +1107,7 @@ struct MATH
|
|||
// https://github.com/harfbuzz/harfbuzz/issues/4653
|
||||
HB_INTERNAL bool is_bad_cambria (hb_font_t *font) const
|
||||
{
|
||||
#ifndef HB_NO_MATH
|
||||
switch HB_CODEPOINT_ENCODE3 (font->face->table.MATH.get_blob ()->length,
|
||||
get_constant (HB_OT_MATH_CONSTANT_DISPLAY_OPERATOR_MIN_HEIGHT, font),
|
||||
get_constant (HB_OT_MATH_CONSTANT_DELIMITED_SUB_FORMULA_MIN_HEIGHT, font))
|
||||
|
@ -1117,6 +1118,7 @@ struct MATH
|
|||
case HB_CODEPOINT_ENCODE3 (25722, 2500, 3000):
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue