From 07f27e1e43a63f611e3f0248a488fb891440fff2 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 24 Oct 2015 15:22:13 +0200 Subject: [PATCH] Thinkos and omissions. --- src/sfnt/ttsbit.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sfnt/ttsbit.c b/src/sfnt/ttsbit.c index 4272d93af..6de875726 100644 --- a/src/sfnt/ttsbit.c +++ b/src/sfnt/ttsbit.c @@ -289,12 +289,12 @@ /* sanitize buggy ascender and descender values */ if ( max_before_bl || min_after_bl ) { - metrics->ascender = max_before_bl; - metrics->descender = min_after_bl; + metrics->ascender = max_before_bl * 64; + metrics->descender = min_after_bl * 64; } else { - metrics->ascender = metrics->y_ppem; + metrics->ascender = metrics->y_ppem * 64; metrics->descender = 0; } } @@ -313,7 +313,8 @@ " " " for strike (%d, %d)\n", metrics->x_ppem, metrics->y_ppem )); - metrics->height = metrics->y_ppem; + metrics->height = metrics->y_ppem * 64; + metrics->descender = metrics->ascender - metrics->height; } /* Is this correct? */