[glyf] Fix build with HB_NO_VERTICAL

This commit is contained in:
Behdad Esfahbod 2022-11-24 12:59:55 -07:00
parent 76420ef769
commit 6f133ccfde
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ struct Glyph
int lsb = 0; int lsb = 0;
int h_delta = glyf_accelerator.hmtx->get_leading_bearing_without_var_unscaled (gid, &lsb) ? int h_delta = glyf_accelerator.hmtx->get_leading_bearing_without_var_unscaled (gid, &lsb) ?
(int) header->xMin - lsb : 0; (int) header->xMin - lsb : 0;
int tsb = 0; HB_UNUSED int tsb = 0;
int v_orig = (int) header->yMax + int v_orig = (int) header->yMax +
#ifndef HB_NO_VERTICAL #ifndef HB_NO_VERTICAL
((void) glyf_accelerator.vmtx->get_leading_bearing_without_var_unscaled (gid, &tsb), tsb) ((void) glyf_accelerator.vmtx->get_leading_bearing_without_var_unscaled (gid, &tsb), tsb)