[hmtx] Change default advance for horizontal direction to upem/2 again

pull/3714/head
Behdad Esfahbod 3 years ago
parent 6d0e67dee0
commit df42d28d18
  1. 5
      src/hb-ot-hmtx-table.hh

@ -170,13 +170,12 @@ struct hmtxvmtx
{
friend struct hmtxvmtx;
accelerator_t (hb_face_t *face,
unsigned int default_advance_ = 0)
accelerator_t (hb_face_t *face)
{
table = hb_sanitize_context_t ().reference_table<hmtxvmtx> (face, T::tableTag);
var_table = hb_sanitize_context_t ().reference_table<HVARVVAR> (face, T::variationsTag);
default_advance = default_advance_ ? default_advance_ : hb_face_get_upem (face);
default_advance = T::is_horizontal ? hb_face_get_upem (face) / 2 : hb_face_get_upem (face);
/* Populate count variables and sort them out as we go */

Loading…
Cancel
Save