[autofit] s/AF_SCRIPT_NONE/AF_SCRIPT_UNASSIGNED/.
This commit is contained in:
parent
69d1a3609e
commit
45244f8043
|
@ -1,3 +1,7 @@
|
||||||
|
2013-12-10 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
[autofit] s/AF_SCRIPT_NONE/AF_SCRIPT_UNASSIGNED/.
|
||||||
|
|
||||||
2013-12-10 Werner Lemberg <wl@gnu.org>
|
2013-12-10 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
[truetype] Fix scaling of vertical phantom points.
|
[truetype] Fix scaling of vertical phantom points.
|
||||||
|
|
|
@ -88,9 +88,9 @@
|
||||||
FT_UInt i;
|
FT_UInt i;
|
||||||
|
|
||||||
|
|
||||||
/* the value AF_SCRIPT_NONE means `uncovered glyph' */
|
/* the value AF_SCRIPT_UNASSIGNED means `uncovered glyph' */
|
||||||
FT_MEM_SET( globals->glyph_scripts,
|
FT_MEM_SET( globals->glyph_scripts,
|
||||||
AF_SCRIPT_NONE,
|
AF_SCRIPT_UNASSIGNED,
|
||||||
globals->glyph_count );
|
globals->glyph_count );
|
||||||
|
|
||||||
error = FT_Select_Charmap( face, FT_ENCODING_UNICODE );
|
error = FT_Select_Charmap( face, FT_ENCODING_UNICODE );
|
||||||
|
@ -128,9 +128,9 @@
|
||||||
|
|
||||||
gindex = FT_Get_Char_Index( face, charcode );
|
gindex = FT_Get_Char_Index( face, charcode );
|
||||||
|
|
||||||
if ( gindex != 0 &&
|
if ( gindex != 0 &&
|
||||||
gindex < (FT_ULong)globals->glyph_count &&
|
gindex < (FT_ULong)globals->glyph_count &&
|
||||||
gscripts[gindex] == AF_SCRIPT_NONE )
|
gscripts[gindex] == AF_SCRIPT_UNASSIGNED )
|
||||||
gscripts[gindex] = (FT_Byte)ss;
|
gscripts[gindex] = (FT_Byte)ss;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
|
@ -140,8 +140,8 @@
|
||||||
if ( gindex == 0 || charcode > range->last )
|
if ( gindex == 0 || charcode > range->last )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if ( gindex < (FT_ULong)globals->glyph_count &&
|
if ( gindex < (FT_ULong)globals->glyph_count &&
|
||||||
gscripts[gindex] == AF_SCRIPT_NONE )
|
gscripts[gindex] == AF_SCRIPT_UNASSIGNED )
|
||||||
gscripts[gindex] = (FT_Byte)ss;
|
gscripts[gindex] = (FT_Byte)ss;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -162,16 +162,16 @@
|
||||||
* By default, all uncovered glyphs are set to the fallback script.
|
* By default, all uncovered glyphs are set to the fallback script.
|
||||||
* XXX: Shouldn't we disable hinting or do something similar?
|
* XXX: Shouldn't we disable hinting or do something similar?
|
||||||
*/
|
*/
|
||||||
if ( globals->module->fallback_script != AF_SCRIPT_NONE )
|
if ( globals->module->fallback_script != AF_SCRIPT_UNASSIGNED )
|
||||||
{
|
{
|
||||||
FT_Long nn;
|
FT_Long nn;
|
||||||
|
|
||||||
|
|
||||||
for ( nn = 0; nn < globals->glyph_count; nn++ )
|
for ( nn = 0; nn < globals->glyph_count; nn++ )
|
||||||
{
|
{
|
||||||
if ( ( gscripts[nn] & ~AF_DIGIT ) == AF_SCRIPT_NONE )
|
if ( ( gscripts[nn] & ~AF_DIGIT ) == AF_SCRIPT_UNASSIGNED )
|
||||||
{
|
{
|
||||||
gscripts[nn] &= ~AF_SCRIPT_NONE;
|
gscripts[nn] &= ~AF_SCRIPT_UNASSIGNED;
|
||||||
gscripts[nn] |= globals->module->fallback_script;
|
gscripts[nn] |= globals->module->fallback_script;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,8 @@
|
||||||
/* if we have a forced script (via `options'), use it, */
|
/* if we have a forced script (via `options'), use it, */
|
||||||
/* otherwise look into `glyph_scripts' array */
|
/* otherwise look into `glyph_scripts' array */
|
||||||
if ( script == AF_SCRIPT_DFLT || script + 1 >= AF_SCRIPT_MAX )
|
if ( script == AF_SCRIPT_DFLT || script + 1 >= AF_SCRIPT_MAX )
|
||||||
script = (AF_Script)( globals->glyph_scripts[gindex] & AF_SCRIPT_NONE );
|
script = (AF_Script)( globals->glyph_scripts[gindex] &
|
||||||
|
AF_SCRIPT_UNASSIGNED );
|
||||||
|
|
||||||
script_class = AF_SCRIPT_CLASSES_GET[script];
|
script_class = AF_SCRIPT_CLASSES_GET[script];
|
||||||
writing_system_class = AF_WRITING_SYSTEM_CLASSES_GET
|
writing_system_class = AF_WRITING_SYSTEM_CLASSES_GET
|
||||||
|
|
|
@ -51,9 +51,9 @@ FT_BEGIN_HEADER
|
||||||
#define AF_SCRIPT_FALLBACK AF_SCRIPT_DFLT
|
#define AF_SCRIPT_FALLBACK AF_SCRIPT_DFLT
|
||||||
#endif
|
#endif
|
||||||
/* a bit mask indicating an uncovered glyph */
|
/* a bit mask indicating an uncovered glyph */
|
||||||
#define AF_SCRIPT_NONE 0x7F
|
#define AF_SCRIPT_UNASSIGNED 0x7F
|
||||||
/* if this flag is set, we have an ASCII digit */
|
/* if this flag is set, we have an ASCII digit */
|
||||||
#define AF_DIGIT 0x80
|
#define AF_DIGIT 0x80
|
||||||
|
|
||||||
/* `increase-x-height' property */
|
/* `increase-x-height' property */
|
||||||
#define AF_PROP_INCREASE_X_HEIGHT_MIN 6
|
#define AF_PROP_INCREASE_X_HEIGHT_MIN 6
|
||||||
|
|
Loading…
Reference in New Issue