freetype/src/psaux
Werner Lemberg adf828ff95 Fix Savannah bug #15056 and use pscmap service in psaux module.
* include/freetype/internal/services/svpscmap.h (PS_UniMap): Use
FT_UInt32 for `glyph_index'.
(PS_Unicodes_InitFunc): Use FT_String for `glyph_names'.
(PS_Unicodes_CharIndexFunc): Use FT_UInt32 for `unicode'.
(PS_Unicodes_CharNextFunc): Make second argument a pointer to
FT_UInt32.

* src/psnames/psmodule.c (VARIANT_BIT, BASE_GLYPH): New macros.
(ps_unicode_value): Set VARIANT_BIT in return value if glyph is a
variant glyph (this is, it has non-leading `.' in its name).
(compare_uni_maps): Sort base glyphs before variant glyphs.
(ps_unicodes_init): Use FT_String for `glyph_names' argument.
Reallocate only if number of used entries is much smaller.
Updated to handle variant glyphs.
(ps_unicodes_char_index, ps_unicodes_char_next): Prefer base glyphs
over variant glyphs.
Simplify code.

* src/psaux/t1cmap.c (t1_cmap_uni_pair_compare): Removed.
(t1_cmap_unicode_init, t1_cmap_unicode_char_index,
t1_cmap_unicode_char_next): Use pscmap service.
(t1_cmap_unicode_done): Updated.

* src/psaux/t1cmap.h (T1_CMapUniPair): Removed.
(T1_CMapUnicode): Use PS_Unicodes structure.
2006-01-11 10:08:49 +00:00
..
Jamfile Add license. 2005-06-04 23:04:30 +00:00
module.mk Added copyright messages to all Makefiles. 2000-10-17 03:38:43 +00:00
psaux.c * src/psaux/t1cmap.c: s/index/idx/. 2002-03-31 11:18:15 +00:00
psauxerr.h Formatting. 2001-06-19 23:03:41 +00:00
psauxmod.c Heavy modification of the PS parser to handle comments and strings 2003-10-07 05:49:41 +00:00
psauxmod.h finishing function header formatting 2001-06-28 17:49:10 +00:00
psobjs.c - various performance enhancements 2005-10-28 16:14:14 +00:00
psobjs.h Heavy modification of the PS parser to handle comments and strings 2003-10-07 05:49:41 +00:00
rules.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
t1cmap.c Fix Savannah bug #15056 and use pscmap service in psaux module. 2006-01-11 10:08:49 +00:00
t1cmap.h Fix Savannah bug #15056 and use pscmap service in psaux module. 2006-01-11 10:08:49 +00:00
t1decode.c * builds/unix/freetype-config.in: Add new flag `--ftversion' to 2005-02-10 08:18:27 +00:00
t1decode.h Updated copyright years. 2003-09-30 07:00:42 +00:00