* 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
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 @@ FT_BEGIN_HEADER
/* 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 @@ FT_BEGIN_HEADER
/* 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 @@ FT_BEGIN_HEADER
/* 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 @@ FT_BEGIN_HEADER
/* 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