[baseline] Fix HB_NO_METRICS build
Fixes https://github.com/harfbuzz/harfbuzz/issues/3482
This commit is contained in:
parent
a8a89b80b4
commit
cad2fe8e63
|
@ -2115,8 +2115,10 @@ hb_ot_layout_get_baseline_with_fallback (hb_font_t *font,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
hb_position_t x_height = 0;
|
hb_position_t x_height = font->y_scale / 2;
|
||||||
|
#ifndef HB_NO_METRICS
|
||||||
hb_ot_metrics_get_position_with_fallback (font, HB_OT_METRICS_TAG_X_HEIGHT, &x_height);
|
hb_ot_metrics_get_position_with_fallback (font, HB_OT_METRICS_TAG_X_HEIGHT, &x_height);
|
||||||
|
#endif
|
||||||
*coord = x_height / 2;
|
*coord = x_height / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue