File 0020-fix-sign-of-calculated-descent.patch of Package fonttosfnt.20912

From 5f2307d883de6ddf55f499f1690840747b1a3ad9 Mon Sep 17 00:00:00 2001
From: Christopher Zimmermann <madroach@gmerlin.de>
Date: Sat, 24 Oct 2020 09:53:32 +0200
Subject: [PATCH] fix sign of calculated descent

I discovered this bug when converting the Tamsyn font from pcf to otb.
---
 write.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
GitLab

openSUSE Build Service is sponsored by