diff options
author | David Turner <david@freetype.org> | 2001-03-19 11:34:49 +0000 |
---|---|---|
committer | David Turner <david@freetype.org> | 2001-03-19 11:34:49 +0000 |
commit | 3798110fc7cbeb16e452578ec19b17441a0dd4fb (patch) | |
tree | d9753bd61c86148b8d9243fe04c8b7c528dee76b /src/cid | |
parent | 8cfe002db957efbb34f504e2ebd4be69dfc7c524 (diff) | |
download | freetype2-3798110fc7cbeb16e452578ec19b17441a0dd4fb.tar.gz |
fixed a small bug
Diffstat (limited to 'src/cid')
-rw-r--r-- | src/cid/cidload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cid/cidload.c b/src/cid/cidload.c index b230f92fb..03343e241 100644 --- a/src/cid/cidload.c +++ b/src/cid/cidload.c @@ -200,8 +200,8 @@ /* 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_UShort)FT_DivFix( 0x10000L, - FT_DivFix( temp_scale, 1000 ) ); + root->units_per_EM = (FT_UShort)( FT_DivFix( 0x10000L, + FT_DivFix( temp_scale, 1000 ) ) >> 16 ); /* we need to scale the values by 1.0/temp[3] */ if ( temp_scale != 0x10000L ) |