formatting, and remove the "interface" identifier that causes problems with MS C++
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 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417
diff --git a/include/freetype.h b/include/freetype.h
index 3f6ba98..7e06ea7 100644
--- a/include/freetype.h
+++ b/include/freetype.h
@@ -1227,7 +1227,7 @@
typedef struct FT_SubGlyph_ FT_SubGlyph;
-
+
struct FT_SubGlyph_
{
FT_Int index;
@@ -1305,7 +1305,7 @@
FT_Glyph_Format format;
FT_Bitmap bitmap;
FT_Outline outline;
-
+
FT_Int num_subglyphs;
FT_Int max_subglyphs;
FT_SubGlyph* subglyphs;
@@ -1380,11 +1380,11 @@
/* ft_stream_pathname :: create a new input stream from a C pathname */
/* */
typedef enum {
-
+
ft_stream_memory = 1,
ft_stream_copy = 2,
ft_stream_pathname = 3
-
+
} FT_Stream_Type;
/*************************************************************************
@@ -1428,7 +1428,7 @@
* should not close the stream before the library does !!
*
*************************************************************************/
-
+
typedef struct FT_Open_Args_
{
FT_Stream_Type stream_type;
@@ -1559,7 +1559,7 @@
EXPORT_DEF
FT_Error FT_Attach_File( FT_Face face,
const char* filepathname );
-
+
/*************************************************************************/
/* */
/* <Function> */
@@ -2103,7 +2103,7 @@
/* <Input> */
/* outline :: A pointer to the source target. */
/* */
- /* interface :: A table of `emitters', i.e,. function pointers called */
+ /* funcs :: A table of `emitters', i.e,. function pointers called */
/* during decomposition to indicate path operations. */
/* */
/* user :: A typeless pointer which is passed to each emitter */
@@ -2115,9 +2115,9 @@
/* */
EXPORT_DEF
int FT_Outline_Decompose( FT_Outline* outline,
- FT_Outline_Funcs* interface,
+ FT_Outline_Funcs* funcs,
void* user );
-
+
/*************************************************************************/
/* */
@@ -2308,22 +2308,22 @@
* FT_Get_Raster
*
* <Description>
- * Return a pointer to the raster corresponding to a given glyph
- * format tag.
+ * Return a pointer to the raster corresponding to a given glyph
+ * format tag.
*
* <Input>
* library :: handle to source library object
* glyph_format :: glyph format tag
*
* <Output>
- * raster_funcs :: if this field is not 0, returns a pointer to the
+ * raster_funcs :: if this field is not 0, returns a pointer to the
* raster's interface/descriptor..
*
* <Return>
* a pointer to the corresponding raster object.
*
*************************************************************************/
-
+
EXPORT_DEF
FT_Raster FT_Get_Raster( FT_Library library,
FT_Glyph_Format glyph_format,
diff --git a/include/ftimage.h b/include/ftimage.h
index 9e8f5d4..24d2d6b 100644
--- a/include/ftimage.h
+++ b/include/ftimage.h
@@ -99,7 +99,7 @@
* have been found to date..
*
*************************************************************************/
-
+
typedef enum FT_Pixel_Mode_
{
ft_pixel_mode_none = 0,
@@ -112,9 +112,9 @@
ft_pixel_mode_rgb16,
ft_pixel_mode_rgb24,
ft_pixel_mode_rgb32,
-
+
ft_pixel_mode_max /* do not remove */
-
+
} FT_Pixel_Mode;
@@ -138,51 +138,51 @@
* FreeType, these types are not handled by the library itself.
*
*************************************************************************/
-
+
typedef enum FT_Palette_Mode_
{
ft_palette_mode_rgb = 0,
ft_palette_mode_rgba,
-
+
ft_palettte_mode_max /* do not remove */
-
+
} FT_Palette_Mode;
/*************************************************************************
- *
- * <Struct>
- * FT_Bitmap
- *
- * <Description>
- * A structure used to describe a bitmap or pixmap to the raster.
- * Note that we now manage pixmaps of various depths through the
+ *
+ * <Struct>
+ * FT_Bitmap
+ *
+ * <Description>
+ * A structure used to describe a bitmap or pixmap to the raster.
+ * Note that we now manage pixmaps of various depths through the
* `pixel_mode' field.
- *
- * <Fields>
- * rows :: The number of bitmap rows.
- *
- * width :: The number of pixels in bitmap row.
- *
- * pitch :: The pitch's absolute value is the number of bytes
- * taken by one bitmap row, including padding. However,
- * the pitch is positive when the bitmap has a `down'
- * flow, and negative when it has an `up' flow. In all
- * cases, the pitch is an offset to add to a bitmap
- * pointer in order to go down one row.
- *
- * buffer :: A typeless pointer to the bitmap buffer. This value
- * should be aligned on 32-bit boundaries in most cases.
- *
- * num_grays :: this field is only used with ft_pixel_mode_grays,
- * it gives the number of gray levels used in the
- * bitmap.
- *
- * pixel_mode :: the pixel_mode, i.e. how pixel bits are stored
- *
- * palette_mode :: this field is only used with paletted pixel modes,
- * it indicates how the palette is stored
- *
+ *
+ * <Fields>
+ * rows :: The number of bitmap rows.
+ *
+ * width :: The number of pixels in bitmap row.
+ *
+ * pitch :: The pitch's absolute value is the number of bytes
+ * taken by one bitmap row, including padding. However,
+ * the pitch is positive when the bitmap has a `down'
+ * flow, and negative when it has an `up' flow. In all
+ * cases, the pitch is an offset to add to a bitmap
+ * pointer in order to go down one row.
+ *
+ * buffer :: A typeless pointer to the bitmap buffer. This value
+ * should be aligned on 32-bit boundaries in most cases.
+ *
+ * num_grays :: this field is only used with ft_pixel_mode_grays,
+ * it gives the number of gray levels used in the
+ * bitmap.
+ *
+ * pixel_mode :: the pixel_mode, i.e. how pixel bits are stored
+ *
+ * palette_mode :: this field is only used with paletted pixel modes,
+ * it indicates how the palette is stored
+ *
* palette :: a typeless pointer to the bitmap palette. only used
* for paletted pixel modes.
*
@@ -197,7 +197,7 @@
*
*
*************************************************************************/
-
+
typedef struct FT_Bitmap_
{
int rows;
@@ -265,7 +265,7 @@
short* contours; /* the contour end points */
int flags; /* outline masks */
-
+
} FT_Outline;
/*************************************************************************/
@@ -325,7 +325,7 @@
ft_outline_ignore_dropouts = 8,
ft_outline_high_precision = 256,
ft_outline_single_pass = 512
-
+
} FT_Outline_Flags;
@@ -515,7 +515,7 @@
* Hershey contain glyph in this format).
*
***********************************************************************/
-
+
typedef enum FT_Glyph_Format_
{
ft_glyph_format_none = 0,
@@ -523,7 +523,7 @@
ft_glyph_format_bitmap = FT_IMAGE_TAG('b','i','t','s'),
ft_glyph_format_outline = FT_IMAGE_TAG('o','u','t','l'),
ft_glyph_format_plotter = FT_IMAGE_TAG('p','l','o','t')
-
+
} FT_Glyph_Format;
/*************************************************************************/
@@ -586,9 +586,9 @@
typedef struct FT_Span_
{
short x;
- short len;
+ unsigned short len;
unsigned char coverage;
-
+
} FT_Span;
@@ -630,7 +630,7 @@
int count,
FT_Span* spans,
void* user );
-
+
/*************************************************************************/
/* */
/* <FuncType> */
@@ -683,7 +683,7 @@
* FT_Raster_Flag
*
* <Description>
- * An enumeration used to list the bit flags used in the "flags"
+ * An enumeration used to list the bit flags used in the "flags"
* field of a FT_Raster_Params function.
*
* <Fields>
@@ -702,11 +702,11 @@
*
**************************************************************************/
typedef enum {
-
+
ft_raster_flag_default = 0,
ft_raster_flag_aa = 1,
ft_raster_flag_direct = 2
-
+
} FT_Raster_Flag;
/**************************************************************************
@@ -747,7 +747,7 @@
* drop-out control per-se the TrueType specification..
*
**************************************************************************/
-
+
typedef struct FT_Raster_Params_
{
FT_Bitmap* target;
@@ -758,7 +758,7 @@
FT_Raster_BitTest_Func bit_test;
FT_Raster_BitSet_Func bit_set;
void* user;
-
+
} FT_Raster_Params;
@@ -791,7 +791,7 @@
typedef int (*FT_Raster_New_Func)( void* memory,
FT_Raster *raster );
-
+
/**************************************************************************
* <FuncType>
@@ -806,8 +806,8 @@
**************************************************************************/
typedef void (*FT_Raster_Done_Func)( FT_Raster raster );
-
-
+
+
/**************************************************************************
*
@@ -927,9 +927,9 @@
FT_Raster_Set_Mode_Func raster_set_mode;
FT_Raster_Render_Func raster_render;
FT_Raster_Done_Func raster_done;
-
+
} FT_Raster_Funcs;
-
+
#endif /* FTIMAGE_H */
diff --git a/include/ftsystem.h b/include/ftsystem.h
index 5f42e17..62c446b 100644
--- a/include/ftsystem.h
+++ b/include/ftsystem.h
@@ -5,7 +5,7 @@
* FreeType low-level system interface definition
*
* This file contains the definitions of the stream and memory interfaces
- * used by FreeType.
+ * used by FreeType.
*
*
* Copyright 1996-1999 by
@@ -29,7 +29,7 @@
*************************************************************************/
typedef struct FT_MemoryRec_* FT_Memory;
-
+
typedef void* (*FT_Alloc_Func)( FT_Memory memory,
long size );
@@ -56,12 +56,12 @@
* I / O M A N A G E M E N T
*
*************************************************************************/
-
+
typedef union FT_StreamDesc_
{
long value;
void* pointer;
-
+
} FT_StreamDesc;
@@ -79,7 +79,7 @@
char* base;
unsigned long size;
unsigned long pos;
-
+
FT_StreamDesc descriptor;
FT_StreamDesc pathname; /* ignored by FreeType - useful for debugging */
diff --git a/include/ttnameid.h b/include/ttnameid.h
index 051fba4..d60c184 100644
--- a/include/ttnameid.h
+++ b/include/ttnameid.h
@@ -651,11 +651,11 @@
* Borland compilers (read: from BC++ 3.1 on) can increase this limit.
* If you get a warning with such a compiler, use the -i40 switch.
*/
-
+
#define TT_UCR_ARABIC_PRESENTATION_FORMS_A \
TT_UCR_ARABIC_PRESENTATIONS_A
#define TT_UCR_ARABIC_PRESENTATION_FORMS_B \
- TT_UCR_ARABIC_PRESENTATIONS_B
+ TT_UCR_ARABIC_PRESENTATIONS_B
#define TT_UCR_COMBINING_DIACRITICAL_MARKS \
TT_UCR_COMBINING_DIACRITICS