* Jamfile: adding the "refdoc" target to the Jamfile in order to build the API Reference in "docs/reference" automatically * include/freetype/t1tables.h, src/cid/cidtoken.h, src/type1/t1tokens.h, src/type42/t42parse.c: re-setting the types of "italic_angle", "underline_position" and "underline_thickness" to their previous values (i.e. long, short and ushort), in order to avoid breaking binary compatibility * include/freetype/ttunpath.h: fixing documentation comment
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 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
diff --git a/ChangeLog b/ChangeLog
index 643d1b3..de2aa83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
2003-08-18 David Turner <david@freetype.org>
+ * Jamfile: adding the "refdoc" target to the Jamfile in order to
+ build the API Reference in "docs/reference" automatically
+
+ * include/freetype/t1tables.h, src/cid/cidtoken.h, src/type1/t1tokens.h,
+ src/type42/t42parse.c:
+
+ re-setting the types of "italic_angle", "underline_position" and
+ "underline_thickness" to their previous values (i.e. long, short and
+ ushort), in order to avoid breaking binary compatibility
+
+ * include/freetype/ttunpath.h: fixing documentation comment
+
* include/freetype/config/ftoption.h, devel/ftoption.h,
include/freetype/internal/ftobjs.h, include/freetype/internal/tttypes.h,
src/truetype/ttinterp.c, src/truetype/ttobjs.c, src/truetype/ttobjs.h:
diff --git a/Jamfile b/Jamfile
index c933cd9..6d94466 100644
--- a/Jamfile
+++ b/Jamfile
@@ -90,6 +90,18 @@ FT2_INCLUDE = $(FT2_BUILD_INCLUDE)
FT2_SRC = [ FT2_SubDir $(FT2_SRC_DIR) ] ;
+# Location of API Reference Documentation
+#
+if $(DOC_DIR)
+{
+ DOC_DIR = $(DOCDIR:T) ;
+}
+else
+{
+ DOC_DIR = docs/reference ;
+}
+
+
# Only used by FreeType developers.
#
if $(DEBUG_HINTER)
@@ -132,4 +144,12 @@ if $(DEBUG_HINTER)
SubInclude FT2_TOP tests ;
}
+actions RefDoc
+{
+ python $(FT2_SRC)/tools/docmaker/docmaker.py --prefix=ft2 --title=FreeType-2.1.5 --output=$(DOC_DIR) $(FT2_INCLUDE)/freetype/*.h $(FT2_INCLUDE)/freetype/config/*.h $(FT2_INCLUDE)/freetype/cache/*.h
+}
+
+RefDoc refdoc ;
+
+
# end of top Jamfile
diff --git a/include/freetype/t1tables.h b/include/freetype/t1tables.h
index daf3e88..70ea438 100644
--- a/include/freetype/t1tables.h
+++ b/include/freetype/t1tables.h
@@ -67,10 +67,10 @@ FT_BEGIN_HEADER
FT_String* full_name;
FT_String* family_name;
FT_String* weight;
- FT_Fixed italic_angle;
+ FT_Long italic_angle;
FT_Bool is_fixed_pitch;
- FT_Fixed underline_position;
- FT_Fixed underline_thickness;
+ FT_Short underline_position;
+ FT_UShort underline_thickness;
} PS_FontInfoRec, *PS_FontInfo;
diff --git a/include/freetype/ttunpat.h b/include/freetype/ttunpat.h
index 4902001..e4885aa 100644
--- a/include/freetype/ttunpat.h
+++ b/include/freetype/ttunpat.h
@@ -42,6 +42,7 @@ FT_BEGIN_HEADER
*/
#define FT_PARAM_TAG_UNPATENTED_HINTING FT_MAKE_TAG( 'u', 'n', 'p', 'a' )
+ /* */
FT_END_HEADER
diff --git a/src/cid/cidtoken.h b/src/cid/cidtoken.h
index 05434c5..2070aa9 100644
--- a/src/cid/cidtoken.h
+++ b/src/cid/cidtoken.h
@@ -44,10 +44,10 @@
T1_FIELD_STRING( "FullName", full_name )
T1_FIELD_STRING( "FamilyName", family_name )
T1_FIELD_STRING( "Weight", weight )
- T1_FIELD_FIXED ( "ItalicAngle", italic_angle )
+ T1_FIELD_NUM ( "ItalicAngle", italic_angle )
T1_FIELD_BOOL ( "isFixedPitch", is_fixed_pitch )
- T1_FIELD_FIXED ( "UnderlinePosition", underline_position )
- T1_FIELD_FIXED ( "UnderlineThickness", underline_thickness )
+ T1_FIELD_NUM ( "UnderlinePosition", underline_position )
+ T1_FIELD_NUM ( "UnderlineThickness", underline_thickness )
#undef FT_STRUCTURE
@@ -98,6 +98,6 @@
#define T1CODE T1_FIELD_LOCATION_BBOX
T1_FIELD_BBOX( "FontBBox", xMin )
-
+
/* END */
diff --git a/src/type1/t1tokens.h b/src/type1/t1tokens.h
index b09f4b9..23e0411 100644
--- a/src/type1/t1tokens.h
+++ b/src/type1/t1tokens.h
@@ -28,10 +28,10 @@
T1_FIELD_STRING( "Weight", weight )
/* we use pointers to detect modifications made by synthetic fonts */
- T1_FIELD_FIXED ( "ItalicAngle", italic_angle )
+ T1_FIELD_NUM ( "ItalicAngle", italic_angle )
T1_FIELD_BOOL ( "isFixedPitch", is_fixed_pitch )
- T1_FIELD_FIXED ( "UnderlinePosition", underline_position )
- T1_FIELD_FIXED ( "UnderlineThickness", underline_thickness )
+ T1_FIELD_NUM ( "UnderlinePosition", underline_position )
+ T1_FIELD_NUM ( "UnderlineThickness", underline_thickness )
#undef FT_STRUCTURE
diff --git a/src/type42/t42parse.c b/src/type42/t42parse.c
index 8e4bbea..ae4b7fc 100644
--- a/src/type42/t42parse.c
+++ b/src/type42/t42parse.c
@@ -39,11 +39,11 @@
static void
t42_parse_encoding( T42_Face face,
T42_Loader loader );
-
+
static void
t42_parse_charstrings( T42_Face face,
T42_Loader loader );
-
+
static void
t42_parse_sfnts( T42_Face face,
T42_Loader loader );
@@ -62,10 +62,10 @@
T1_FIELD_STRING( "FullName", full_name )
T1_FIELD_STRING( "FamilyName", family_name )
T1_FIELD_STRING( "Weight", weight )
- T1_FIELD_FIXED ( "ItalicAngle", italic_angle )
+ T1_FIELD_NUM ( "ItalicAngle", italic_angle )
T1_FIELD_BOOL ( "isFixedPitch", is_fixed_pitch )
- T1_FIELD_FIXED ( "UnderlinePosition", underline_position )
- T1_FIELD_FIXED ( "UnderlineThickness", underline_thickness )
+ T1_FIELD_NUM ( "UnderlinePosition", underline_position )
+ T1_FIELD_NUM ( "UnderlineThickness", underline_thickness )
#undef FT_STRUCTURE
#define FT_STRUCTURE T1_FontRec
@@ -460,28 +460,28 @@
t42_hexval( FT_Byte v )
{
FT_UInt d;
-
+
d = (FT_UInt)( v - 'A' );
if ( d < 6 )
{
d += 10;
goto Exit;
}
-
+
d = (FT_UInt)( v - 'a' );
if ( d < 6 )
{
d += 10;
goto Exit;
}
-
+
d = (FT_UInt)( v - '0' );
if ( d < 10 )
goto Exit;
-
+
d = 0;
-
- Exit:
+
+ Exit:
return d;
}
@@ -613,7 +613,7 @@
for ( i = 0; i < num_tables; i++ )
{
FT_Byte* p = face->ttf_data + 12 + 16*i + 12;
-
+
len = FT_PEEK_ULONG( p );
/* Pad to a 4-byte boundary length */
@@ -816,14 +816,14 @@
T42_Parser parser = &loader->parser;
FT_Byte* cur = base;
FT_Byte* limit = cur + size;
- FT_UInt n_keywords = (FT_UInt)( sizeof ( t42_keywords ) /
+ FT_UInt n_keywords = (FT_UInt)( sizeof ( t42_keywords ) /
sizeof ( t42_keywords[0] ) );
-
+
FT_Byte keyword_flags[T42_KEYWORD_COUNT];
{
FT_UInt n;
-
+
for ( n = 0; n < T42_KEYWORD_COUNT; n++ )
keyword_flags[n] = 0;
@@ -900,7 +900,7 @@
/* we found it -- run the parsing callback! */
parser->root.cursor = cur2;
T1_Skip_Spaces( parser );
-
+
/* only record the first instance of each field/keyword */
/* to deal with synthetic fonts correctly */
if ( keyword_flags[i] == 0 )
@@ -912,7 +912,7 @@
return parser->root.error;
}
keyword_flags[i] = 1;
-
+
cur = parser->root.cursor;
break;
}