summaryrefslogtreecommitdiff
path: root/src/pshinter/pshglob.c
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2002-05-28 20:29:12 +0000
committerDavid Turner <david@freetype.org>2002-05-28 20:29:12 +0000
commit69e7ee03915acec45667c30148f893950c7694bd (patch)
tree12df367385e977c55ee86c87323db6d9e59d7741 /src/pshinter/pshglob.c
parent665f30d3aabc78fdee1d6926bdcb89c40b4ff8ff (diff)
downloadfreetype2-69e7ee03915acec45667c30148f893950c7694bd.tar.gz
* src/pshinter/pshglob.c (psh_blues_scale_zones): fixed a bug that
prevented family blue zones substitution from hapenning correctly
Diffstat (limited to 'src/pshinter/pshglob.c')
-rw-r--r--src/pshinter/pshglob.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/pshinter/pshglob.c b/src/pshinter/pshglob.c
index 45cc067dc..a8904acb7 100644
--- a/src/pshinter/pshglob.c
+++ b/src/pshinter/pshglob.c
@@ -488,7 +488,14 @@
for ( ; count2 > 0; count2--, zone2++ )
{
- if ( FT_MulFix( zone1->org_ref - zone2->org_ref, scale ) < 64 )
+ FT_Pos delta;
+
+
+ delta = zone1->org_ref - zone2->org_ref;
+ if ( delta < 0 )
+ delta = -delta;
+
+ if ( FT_MulFix( delta, scale ) < 64 )
{
zone1->cur_top = zone2->cur_top;
zone1->cur_bottom = zone2->cur_bottom;