freetype2/include/freetype/internal
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
..
services Fix Savannah bug #15056 and use pscmap service in psaux module. 2006-01-11 10:08:49 +00:00
autohint.h updating sources to support the new FT_LOAD_TARGET_ constants 2002-08-27 22:34:20 +00:00
ftcalc.h * src/base/ftcalc.c (FT_MulTo64): Commented out. 2005-11-17 01:53:07 +00:00
ftdebug.h * src/base/ftcalc.c (FT_MulTo64): Commented out. 2005-11-17 01:53:07 +00:00
ftdriver.h Improve documentation. 2003-12-25 00:20:17 +00:00
ftgloadr.h Clean-up. 2005-11-12 07:34:40 +00:00
ftmemory.h * include/freetype/internal/ftmemory.h (FT_REALLOC_ARRAY): Fix typo. 2005-07-05 09:00:11 +00:00
ftobjs.h * include/freetype/internal/ftobjs.h (ft_glyphslot_grid_fit_metrics), 2005-12-16 14:27:14 +00:00
ftrfork.h Provide generic access to MacOS resource forks. 2004-02-25 12:58:54 +00:00
ftserv.h Add gxvalid module to validate TrueType GX/AAT tables. 2005-08-24 04:31:31 +00:00
ftstream.h * src/base/ftcalc.c (FT_MulTo64): Commented out. 2005-11-17 01:53:07 +00:00
fttrace.h Add gxvalid module to validate TrueType GX/AAT tables. 2005-08-24 04:31:31 +00:00
ftvalid.h Adding OpenType validation module. The code is based on the 2004-09-10 14:39:00 +00:00
internal.h * include/freetype/internal/ftobjs.h: Don't include 2004-09-06 07:06:56 +00:00
pcftypes.h Cleanups. 2003-04-22 07:49:24 +00:00
psaux.h * include/freetype/internal/psaux.h (T1_ParseState): New 2004-05-13 12:59:59 +00:00
pshints.h * include/freetype/ftsysmem.h, include/freetype/ftsysio.h: Removed. 2005-10-27 21:28:35 +00:00
sfnt.h Formatting. 2005-03-01 02:13:50 +00:00
t1types.h Add support for the hexadicimal representation of binary data 2004-01-23 19:52:40 +00:00
tttypes.h Formatting, improving comments. 2005-12-20 12:01:58 +00:00