formatting
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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
diff --git a/ChangeLog b/ChangeLog
index e6731d1..7ecc192 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,29 +5,28 @@
2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
- * include/freetype/tttags.h: Fix wrong definitions of TTAG_TYP1
- and TTAG_typ1.
+ * include/freetype/tttags.h (TTAG_TYP1, TTAG_typ1): Fix definitions.
* src/base/ftobjs.c: Include FT_TRUETYPE_TAGS_H.
2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
- * src/sfnt/sfobjs.c (sfnt_open_font): Allow 'typ1' version
- tag in the beginning of sfnt container.
+ * src/sfnt/sfobjs.c (sfnt_open_font): Allow `typ1' version tag in
+ the beginning of sfnt container.
* src/sfnt/ttload.c (check_table_dir): Return
- `SFNT_Err_Table_Missing' when sfnt table directory structure
- is correct but essential tables for TrueType fonts (`head',
- `bhed' or `SING') are missing. Other errors are returned
- by SFNT_Err_Unknown_File_Format.
+ `SFNT_Err_Table_Missing' when sfnt table directory structure is
+ correct but essential tables for TrueType fonts (`head', `bhed' or
+ `SING') are missing. Other errors are returned by
+ SFNT_Err_Unknown_File_Format.
* src/base/ftobjs.c (FT_Open_Face): When TrueType driver returns
- `FT_Err_Table_Missing', try `open_face_PS_from_sfnt_stream'.
- It is enabled only when old mac font support is configured.
+ `FT_Err_Table_Missing', try `open_face_PS_from_sfnt_stream'. It is
+ enabled only when old mac font support is configured.
2008-10-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
- * include/freetype/tttags.h: Add TTAG_CID, TTAG_FOND, TTAG_LWFN,
- TTAG_POST, TTAG_sfnt, TTAG_TYP1, TTAG_typ1 to simplify the
- repeated calculations of these values in ftobjs.c and ftmac.c.
+ * include/freetype/tttags.h (TTAG_CID, TTAG_FOND, TTAG_LWFN,
+ TTAG_POST, TTAG_sfnt, TTAG_TYP1, TTAG_typ1): New tags to simplify
+ the repeated calculations of these values in ftobjs.c and ftmac.c.
* src/base/ftobjs.c: Replace all FT_MAKE_TAG by new tags.
* src/base/ftmac.c: Ditto.
* builds/mac/ftmac.c: Ditto.
diff --git a/include/freetype/tttags.h b/include/freetype/tttags.h
index 4d344be..307ce4b 100644
--- a/include/freetype/tttags.h
+++ b/include/freetype/tttags.h
@@ -4,7 +4,7 @@
/* */
/* Tags for TrueType and OpenType tables (specification only). */
/* */
-/* Copyright 1996-2001, 2004, 2005, 2007 by */
+/* Copyright 1996-2001, 2004, 2005, 2007, 2008 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index cfd9ad7..0d036f6 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -1954,7 +1954,7 @@
#ifdef FT_CONFIG_OPTION_MAC_FONTS
if ( ft_strcmp( cur[0]->clazz->module_name, "truetype" ) == 0 &&
- FT_ERROR_BASE( error ) == FT_Err_Table_Missing )
+ FT_ERROR_BASE( error ) == FT_Err_Table_Missing )
{
/* TrueType but essential tables are missing */
if ( FT_Stream_Seek( stream, 0 ) )
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 4f074d3..0b73f21 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -363,12 +363,12 @@
if ( FT_READ_ULONG( tag ) )
return error;
- if ( tag != 0x00010000UL &&
- tag != TTAG_ttcf &&
- tag != TTAG_OTTO &&
- tag != TTAG_true &&
- tag != TTAG_typ1 &&
- tag != 0x00020000UL )
+ if ( tag != 0x00010000UL &&
+ tag != TTAG_ttcf &&
+ tag != TTAG_OTTO &&
+ tag != TTAG_true &&
+ tag != TTAG_typ1 &&
+ tag != 0x00020000UL )
return SFNT_Err_Unknown_File_Format;
face->ttc_header.tag = TTAG_ttcf;
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index aa14e94..5219627 100644
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -141,12 +141,14 @@
/* - look for a `head' table, check its size, and parse it to check */
/* whether its `magic' field is correctly set */
/* */
- /* - errors (except of errors returned by stream handling) */
+ /* - errors (except errors returned by stream handling) */
/* */
- /* SFNT_Err_Unknown_File_Format: no table is defined in directory, */
- /* it's not sfnt-wrapped data. */
- /* SFNT_Err_Table_Missing: table directory is valid, but essential */
- /* tables (head/bhed/SING) are missing. */
+ /* SFNT_Err_Unknown_File_Format: */
+ /* no table is defined in directory, it is not sfnt-wrapped */
+ /* data */
+ /* SFNT_Err_Table_Missing: */
+ /* table directory is valid, but essential tables */
+ /* (head/bhed/SING) are missing */
/* */
static FT_Error
check_table_dir( SFNT_Header sfnt,