forked from minhngoc25a/freetype2
[truetype] Limit INSTCTRL appication within specs.
* src/truetype/ttinterp.c (Ins_INSTCTRL): Limit its global effects to the CVT program and local effects to the glyph program.
This commit is contained in:
parent
34fc55de47
commit
2e3455b135
|
@ -5260,10 +5260,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exc->GS.instruct_control &= ~(FT_Byte)Kf;
|
/* INSTCTRL should only be used in the CVT program */
|
||||||
exc->GS.instruct_control |= (FT_Byte)L;
|
if ( exc->iniRange == tt_coderange_cvt )
|
||||||
|
{
|
||||||
|
exc->GS.instruct_control &= ~(FT_Byte)Kf;
|
||||||
|
exc->GS.instruct_control |= (FT_Byte)L;
|
||||||
|
}
|
||||||
|
|
||||||
if ( K == 3 )
|
/* except to change the subpixel flags temporarily */
|
||||||
|
else if ( exc->iniRange == tt_coderange_glyph && K == 3 )
|
||||||
{
|
{
|
||||||
#ifdef TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY
|
#ifdef TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY
|
||||||
/* INSTCTRL modifying flag 3 also has an effect */
|
/* INSTCTRL modifying flag 3 also has an effect */
|
||||||
|
|
Loading…
Reference in New Issue