summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2020-10-24 09:00:18 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2020-10-24 09:00:18 +0000
commit0c955f1564cb89f359ab9a7c1ae77edba6147091 (patch)
tree2e71157aa69d44dfc63ff77bb095c283dc49f63e
parentd1da18d265a27a30f1a461c03f987df9947fff2b (diff)
fix sign of calculated descent
"I discovered this bug when converting the Tamsyn font from pcf to otb." from chrisz@
-rw-r--r--app/fonttosfnt/write.c2
1 files changed, 1 insertions, 1 deletions
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;