* src/pshinter/pshglob.h, src/pshinter/pshglob.c: adding support for
blue fuzz
This commit is contained in:
parent
e2903b7f80
commit
038ca644a3
|
@ -17,6 +17,9 @@
|
|||
|
||||
2002-07-07 Owen Taylor <owen@redhat.com>
|
||||
|
||||
* src/pshinter/pshglob.h, src/pshinter/pshglob.c: adding support for
|
||||
blue fuzz
|
||||
|
||||
* include/freetype/freetype.h, src/base/ftobjs.h,
|
||||
freetype/internal/ftobjs.h, freetype/internal/psaux.h,
|
||||
freetype/internal/pshints.h, src/psaux/t1decode.c, src/cff/cffgload.h,
|
||||
|
|
|
@ -534,10 +534,10 @@
|
|||
for ( ; count > 0; count--, zone++ )
|
||||
{
|
||||
delta = stem_top - zone->org_bottom;
|
||||
if ( delta < 0 )
|
||||
if ( delta < -blues->blue_fuzz )
|
||||
break;
|
||||
|
||||
if ( stem_top <= zone->org_top )
|
||||
if ( stem_top <= zone->org_top + blues->blue_fuzz)
|
||||
{
|
||||
if ( no_shoots || delta <= blues->blue_threshold )
|
||||
{
|
||||
|
@ -556,10 +556,10 @@
|
|||
for ( ; count > 0; count--, zone-- )
|
||||
{
|
||||
delta = zone->org_top - stem_bot;
|
||||
if ( delta < 0 )
|
||||
if ( delta < -blues->blue_fuzz )
|
||||
break;
|
||||
|
||||
if ( stem_bot >= zone->org_bottom )
|
||||
if ( stem_bot >= zone->org_bottom - blues->blue_fuzz )
|
||||
{
|
||||
if ( no_shoots || delta < blues->blue_shift )
|
||||
{
|
||||
|
@ -680,6 +680,8 @@
|
|||
? priv->blue_shift
|
||||
: 7;
|
||||
|
||||
globals->blues.blue_fuzz = priv->blue_fuzz;
|
||||
|
||||
globals->dimension[0].scale_mult = 0;
|
||||
globals->dimension[0].scale_delta = 0;
|
||||
globals->dimension[1].scale_mult = 0;
|
||||
|
|
|
@ -123,6 +123,7 @@ FT_BEGIN_HEADER
|
|||
FT_Fixed blue_scale;
|
||||
FT_Int blue_shift;
|
||||
FT_Int blue_threshold;
|
||||
FT_Int blue_fuzz;
|
||||
FT_Bool no_overshoots;
|
||||
|
||||
} PSH_BluesRec, *PSH_Blues;
|
||||
|
|
|
@ -1653,6 +1653,9 @@
|
|||
/* default lenIV */
|
||||
type1->private_dict.lenIV = 4;
|
||||
|
||||
/* default blue fuzz, we put it there since 0 is a valid value */
|
||||
type1->private_dict.blue_fuzz = 1;
|
||||
|
||||
parser = &loader.parser;
|
||||
error = T1_New_Parser( parser,
|
||||
face->root.stream,
|
||||
|
|
Loading…
Reference in New Issue