From 0c955f1564cb89f359ab9a7c1ae77edba6147091 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sat, 24 Oct 2020 09:00:18 +0000 Subject: fix sign of calculated descent "I discovered this bug when converting the Tamsyn font from pcf to otb." from chrisz@ --- app/fonttosfnt/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/fonttosfnt/write.c b/app/fonttosfnt/write.c index cfc479371..ca7c95a0b 100644 --- a/app/fonttosfnt/write.c +++ b/app/fonttosfnt/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; -- cgit v1.2.3