summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Zimmermann <madroach@gmerlin.de>2020-10-24 09:53:32 +0200
committerChristopher Zimmermann <madroach@gmerlin.de>2020-10-24 09:54:27 +0200
commit5f2307d883de6ddf55f499f1690840747b1a3ad9 (patch)
tree0d48b641fbf4078b53007e4e7bb23a00f50f8e29
parent4d418c1602c8b939d3e5e479c44985a505ecad83 (diff)
fix sign of calculated descent
I discovered this bug when converting the Tamsyn font from pcf to otb.
-rw-r--r--write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/write.c b/write.c
index cfc4793..ca7c95a 100644
--- a/write.c
+++ b/write.c
@@ -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;