summaryrefslogtreecommitdiff
path: root/src/cid
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2001-03-11 11:28:39 +0000
committerWerner Lemberg <wl@gnu.org>2001-03-11 11:28:39 +0000
commit29bac136cbdba649fe47b98d1384e88e87dd940c (patch)
tree2a033ae8d4f16255e20c4d9fbc6aad2675141db4 /src/cid
parent21fed911e28efd71305b32caf906e2bc4ba00cc7 (diff)
downloadfreetype2-29bac136cbdba649fe47b98d1384e88e87dd940c.tar.gz
* TODO: Updated.
* src/cid/cidload.c (parse_font_matrix): Added units_per_EM * src/type1/t1load.c (parse_font_bbox): Changed to use FT_Fixed
Diffstat (limited to 'src/cid')
-rw-r--r--src/cid/cidload.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cid/cidload.c b/src/cid/cidload.c
index 5fa4c6114..a372a99b9 100644
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -186,6 +186,7 @@
FT_Fixed temp[6];
FT_Fixed temp_scale;
+
if ( parser->num_dict >= 0 )
{
dict = face->cid.font_dicts + parser->num_dict;
@@ -196,10 +197,11 @@
temp_scale = ABS( temp[3] );
- /* Set Units per EM based on FontMatrix values. We set the value to */
- /* 1000 / temp_scale, because temp_scale was already multiplied by */
- /* 1000 (in t1_tofixed, from psobjs.c). */
- root->units_per_EM = FT_DivFix( 0x10000L, FT_DivFix( temp_scale, 1000 ) );
+ /* Set Units per EM based on FontMatrix values. We set the value to */
+ /* `1000/temp_scale', because temp_scale was already multiplied by */
+ /* 1000 (in t1_tofixed(), from psobjs.c). */
+ root->units_per_EM = FT_DivFix( 0x10000L,
+ FT_DivFix( temp_scale, 1000 ) );
/* we need to scale the values by 1.0/temp[3] */
if ( temp_scale != 0x10000L )