[GPOS] Disable vertical advance if HB_NO_VERTICAL

pull/3324/head
Behdad Esfahbod 3 years ago
parent 6ed22de127
commit ef14cad736
  1. 8
      src/hb-ot-layout-gpos-table.hh

@ -118,7 +118,13 @@ struct ValueFormat : HBUINT16
if (!format) return ret;
hb_font_t *font = c->font;
bool horizontal = HB_DIRECTION_IS_HORIZONTAL (c->direction);
bool horizontal =
#ifndef HB_NO_VERTICAL
HB_DIRECTION_IS_HORIZONTAL (c->direction)
#else
true
#endif
;
if (format & xPlacement) glyph_pos.x_offset += font->em_scale_x (get_short (values++, &ret));
if (format & yPlacement) glyph_pos.y_offset += font->em_scale_y (get_short (values++, &ret));

Loading…
Cancel
Save