From 6bf8f0a38fdb43ef9593eedabd7deba6064df44b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 15 Mar 2022 10:44:41 -0600 Subject: [PATCH] [baseline] Use ot-metrics fallback API --- src/hb-ot-layout.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 01053ab73..d677a678c 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -2116,7 +2116,7 @@ hb_ot_layout_get_baseline_with_fallback (hb_font_t *font, else { hb_position_t x_height = 0; - hb_ot_metrics_get_position (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); *coord = x_height / 2; } }