* src/sfnt/ttload.c (TT_Load_CMap): Fix frame length of
`cmap_rec_fields'.
* include/freetype/fterrors.h [!FT_CONFIG_OPTION_USE_MODULE_ERRORS]:
Undefine FT_ERR_BASE before defining again.
diff --git a/ChangeLog b/ChangeLog
index a0f2c6f..ddad7fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-08-25 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (TT_Load_CMap): Fix frame length of
+ `cmap_rec_fields'.
+
+ * include/freetype/fterrors.h [!FT_CONFIG_OPTION_USE_MODULE_ERRORS]:
+ Undefine FT_ERR_BASE before defining again.
+
2001-08-22 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.h: Fix prototype of TT_Move_Func.
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index eebe71c..2524f8b 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -539,12 +539,12 @@
/* num_charmaps :: The total number of character maps in the */
/* face. */
/* */
- /* charmaps :: A table of pointers to the face's charmaps */
+ /* charmaps :: A table of pointers to the face's charmaps. */
/* Used to scan the list of available charmaps */
- /* this table might change after a call to */
- /* FT_Attach_File/Stream (e.g. when it used */
- /* to hook and additional encoding/CMap to */
- /* the face object). */
+ /* -- this table might change after a call to */
+ /* FT_Attach_File/Stream (e.g. when used to */
+ /* hook an additional encoding/CMap to the */
+ /* face object). */
/* */
/* generic :: A field reserved for client uses. See the */
/* FT_Generic type description. */
@@ -1512,7 +1512,7 @@
/* format of a given font resource. If the `face_index' field is */
/* negative, the function will _not_ return any face handle in */
/* `aface'. Its return value should be 0 if the font format is */
- /* recognized, or non-zero if not. */
+ /* recognized, or non-zero otherwise. */
/* */
FT_EXPORT( FT_Error )
FT_New_Face( FT_Library library,
@@ -1560,7 +1560,7 @@
/* font format of a given font resource. If the `face_index' field */
/* is negative, the function will _not_ return any face handle in */
/* `aface'. Its return value should be 0 if the font format is */
- /* recognized, or non-zero if not. */
+ /* recognized, or non-zero otherwise. */
/* */
FT_EXPORT( FT_Error )
FT_New_Memory_Face( FT_Library library,
@@ -1604,7 +1604,7 @@
/* format of a given font resource. If the `face_index' field is */
/* negative, the function will _not_ return any face handle in */
/* `*face'. Its return value should be 0 if the font format is */
- /* recognized, or non-zero if not. */
+ /* recognized, or non-zero otherwise. */
/* */
FT_EXPORT( FT_Error )
FT_Open_Face( FT_Library library,
diff --git a/include/freetype/fterrors.h b/include/freetype/fterrors.h
index 8518374..89e0cf3 100644
--- a/include/freetype/fterrors.h
+++ b/include/freetype/fterrors.h
@@ -127,6 +127,7 @@
#else
+#undef FT_ERR_BASE
#define FT_ERR_BASE 0
#endif /* FT_CONFIG_OPTION_USE_MODULE_ERRORS */
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index 6946636..0c9a178 100644
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -1141,7 +1141,7 @@
#undef FT_STRUCTURE
#define FT_STRUCTURE TT_CMapTable
- FT_FRAME_START( 6 ),
+ FT_FRAME_START( 4 ),
FT_FRAME_USHORT( format ),
FT_FRAME_USHORT( length ),
FT_FRAME_END