From 6ad5735a27f1b4692c7ad21c0bca8733ee9cec4d Mon Sep 17 00:00:00 2001 From: Tom Kacvinsky Date: Wed, 7 Feb 2001 01:14:53 +0000 Subject: [PATCH] In function T1_Init_Face, added code to get the units_per_EM from the value assigned in parse_font_matrix, if available. Default to 1000 if not available. --- src/type1/t1objs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c index 848e3e8a4..bdaf8feaa 100644 --- a/src/type1/t1objs.c +++ b/src/type1/t1objs.c @@ -268,7 +268,11 @@ root->available_sizes = 0; root->bbox = face->type1.font_bbox; - root->units_per_EM = 1000; + + /* Set units_per_EM if we didn't set it in parse_font_matrix. */ + if ( !root->units_per_EM ) + root->units_per_EM = 1000; + root->ascender = (FT_Short)face->type1.font_bbox.yMax; root->descender = (FT_Short)face->type1.font_bbox.yMin; root->height = ( ( root->ascender - root->descender ) * 12 ) / 10;