From 69e7ee03915acec45667c30148f893950c7694bd Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 28 May 2002 20:29:12 +0000 Subject: [PATCH] * src/pshinter/pshglob.c (psh_blues_scale_zones): fixed a bug that prevented family blue zones substitution from hapenning correctly --- ChangeLog | 3 +++ src/pshinter/pshglob.c | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 560a6850a..00c8ffc86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-05-28 David Turner + * src/pshinter/pshglob.c (psh_blues_scale_zones): fixed a bug that + prevented family blue zones substitution from hapenning correctly + * include/freetype/ftbdf.h: adding documentation comments for the API reference describing the new function FT_Get_BDF_Charset_ID. 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;