diff options
author | Christopher Zimmermann <madroach@gmerlin.de> | 2020-10-24 09:53:32 +0200 |
---|---|---|
committer | Christopher Zimmermann <madroach@gmerlin.de> | 2020-10-24 09:54:27 +0200 |
commit | 5f2307d883de6ddf55f499f1690840747b1a3ad9 (patch) | |
tree | 0d48b641fbf4078b53007e4e7bb23a00f50f8e29 | |
parent | 4d418c1602c8b939d3e5e479c44985a505ecad83 (diff) |
fix sign of calculated descent
I discovered this bug when converting the Tamsyn font from pcf to otb.
-rw-r--r-- | write.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -260,7 +260,7 @@ fontMetrics(FontPtr font) * TWO_SIXTEENTH / font->pxMetrics.height; if(font->pxMetrics.descent == UNDEF) { - font->metrics.descent = font->metrics.minY; + font->metrics.descent = - font->metrics.minY; font->pxMetrics.descent = font->metrics.descent * font->pxMetrics.height / TWO_SIXTEENTH; |