[ot-font] Fix sign of ascent/descent
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 24 Oct 2018 00:00:49 +0000 (17:00 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 24 Oct 2018 00:00:49 +0000 (17:00 -0700)
commit401cdf07922f66c762dabfd8e3d45c35e33de7c0
treea237989c6fd775e39dce2a3b0a841ec8dd176a1b
parentba502dea1e81981f3893b5353400909bf60e354f
[ot-font] Fix sign of ascent/descent

Some fonts, like msmincho, have positive number as descent
in vhea table.  That's wrong.  Just enforce sign on ascent/descent
when reading both horizontal and vertical metrics.

Fixes https://github.com/harfbuzz/harfbuzz/issues/1248
src/hb-ot-hmtx-table.hh