|
|
|
@ -498,7 +498,7 @@ |
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
print_zone( PSH1_Zone zone ) |
|
|
|
|
psh1_print_zone( PSH1_Zone zone ) |
|
|
|
|
{ |
|
|
|
|
printf( "zone [scale,delta,min,max] = [%.3f,%.3f,%d,%d]\n", |
|
|
|
|
zone->scale / 65536.0, |
|
|
|
@ -508,7 +508,7 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#else |
|
|
|
|
#define print_zone( x ) do { } while ( 0 ) |
|
|
|
|
#define psh1_print_zone( x ) do { } while ( 0 ) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/* setup interpolation zones once the hints have been grid-fitted */ |
|
|
|
@ -549,7 +549,7 @@ |
|
|
|
|
zone->min = PSH1_ZONE_MIN; |
|
|
|
|
zone->max = hint->org_pos; |
|
|
|
|
|
|
|
|
|
print_zone( zone ); |
|
|
|
|
psh1_print_zone( zone ); |
|
|
|
|
|
|
|
|
|
zone++; |
|
|
|
|
|
|
|
|
@ -570,7 +570,7 @@ |
|
|
|
|
zone->max = hint->org_pos + hint->org_len; |
|
|
|
|
zone->delta = hint->cur_pos - FT_MulFix( zone->min, scale2 ); |
|
|
|
|
|
|
|
|
|
print_zone( zone ); |
|
|
|
|
psh1_print_zone( zone ); |
|
|
|
|
|
|
|
|
|
zone++; |
|
|
|
|
} |
|
|
|
@ -593,7 +593,7 @@ |
|
|
|
|
zone->delta = hint->cur_pos + hint->cur_len - |
|
|
|
|
FT_MulFix( zone->min, scale2 ); |
|
|
|
|
|
|
|
|
|
print_zone( zone ); |
|
|
|
|
psh1_print_zone( zone ); |
|
|
|
|
|
|
|
|
|
zone++; |
|
|
|
|
|
|
|
|
@ -607,7 +607,7 @@ |
|
|
|
|
zone->delta = hint->cur_pos + hint->cur_len - |
|
|
|
|
FT_MulFix( zone->min, scale ); |
|
|
|
|
|
|
|
|
|
print_zone( zone ); |
|
|
|
|
psh1_print_zone( zone ); |
|
|
|
|
|
|
|
|
|
zone++; |
|
|
|
|
|
|
|
|
|