[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] Processing families, ( for David Turner )
From: |
Martin Muskens |
Subject: |
[Devel] Processing families, ( for David Turner ) |
Date: |
Tue, 28 May 2002 14:46:18 +0200 |
Dear David,
I have a rather urgent problem.
In Freetype, version 1.4 -> 1.5 in pshglob.c You build in the processing of
families.
My problem is, the with certain scalings, the generated bitmaps are not correct.
I try to display a PostScript file with embedded fonts.
I found that putting in an ABS fixed the problem. But, I am not sure this is
the correct solution.
Could You check if my fix is correct, and maybe add it to the head?
Thank You.
Martin Muskens
Aurelon
/* process the families now */
for ( num = 0; num < 2; num++ )
{
PSH_Blue_Zone zone1, zone2;
FT_UInt count1, count2;
PSH_Blue_Table normal, family;
switch ( num )
{
case 0:
normal = &blues->normal_top;
family = &blues->family_top;
break;
default:
normal = &blues->normal_bottom;
family = &blues->family_bottom;
}
zone1 = normal->zones;
count1 = normal->count;
for ( ; count1 > 0; count1--, zone1++ )
{
/* try to find a family zone whose reference position is less */
/* than 1 pixel far from the current zone */
zone2 = family->zones;
count2 = family->count;
for ( ; count2 > 0; count2--, zone2++ )
{
if ( FT_MulFix( ABS( zone1->org_ref - zone2->org_ref ), scale ) < 64
) // <=============ABS=============
{
zone1->cur_top = zone2->cur_top;
zone1->cur_bottom = zone2->cur_bottom;
zone1->cur_ref = zone2->cur_ref;
zone1->cur_delta = zone2->cur_delta;
break;
}
}
}
}
- [Devel] Processing families, ( for David Turner ),
Martin Muskens <=