aboutsummaryrefslogtreecommitdiffstats
path: root/include/freetype/freetype.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-04-13 08:47:41 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-04-13 08:47:41 -0400
commitfa4b6e00fd204998f6011420bdad60477b7a2f12 (patch)
tree4fd37e92f375ddb49e156b07811b8a2fe1ad6c0d /include/freetype/freetype.h
parent03130c5bcec3c885a1be005c24e192dfb57f3fe5 (diff)
parentheses
Diffstat (limited to 'include/freetype/freetype.h')
-rw-r--r--include/freetype/freetype.h468
1 files changed, 234 insertions, 234 deletions
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 39a18af..431ffb6 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -507,18 +507,18 @@ FT_BEGIN_HEADER
/* this: */
/* */
/* { */
- /* #define FT_ENC_TAG( value, a, b, c, d ) value */
+ /* #define FT_ENC_TAG(value, a, b, c, d) value */
/* } */
/* */
/* to get a simple enumeration without assigning special numbers. */
/* */
#ifndef FT_ENC_TAG
-#define FT_ENC_TAG( value, a, b, c, d ) \
- value = ( ( (FT_UInt32)(a) << 24 ) | \
- ( (FT_UInt32)(b) << 16 ) | \
- ( (FT_UInt32)(c) << 8 ) | \
- (FT_UInt32)(d) )
+#define FT_ENC_TAG(value, a, b, c, d) \
+ value = (((FT_UInt32)(a) << 24) | \
+ ((FT_UInt32)(b) << 16) | \
+ ((FT_UInt32)(c) << 8) | \
+ (FT_UInt32)(d) )
#endif /* FT_ENC_TAG */
@@ -665,16 +665,16 @@ FT_BEGIN_HEADER
/* */
typedef enum FT_Encoding_
{
- FT_ENC_TAG( FT_ENCODING_NONE, 0, 0, 0, 0 ),
+ FT_ENC_TAG(FT_ENCODING_NONE, 0, 0, 0, 0),
- FT_ENC_TAG( FT_ENCODING_MS_SYMBOL, 's', 'y', 'm', 'b' ),
- FT_ENC_TAG( FT_ENCODING_UNICODE, 'u', 'n', 'i', 'c' ),
+ FT_ENC_TAG(FT_ENCODING_MS_SYMBOL, 's', 'y', 'm', 'b'),
+ FT_ENC_TAG(FT_ENCODING_UNICODE, 'u', 'n', 'i', 'c'),
- FT_ENC_TAG( FT_ENCODING_SJIS, 's', 'j', 'i', 's' ),
- FT_ENC_TAG( FT_ENCODING_GB2312, 'g', 'b', ' ', ' ' ),
- FT_ENC_TAG( FT_ENCODING_BIG5, 'b', 'i', 'g', '5' ),
- FT_ENC_TAG( FT_ENCODING_WANSUNG, 'w', 'a', 'n', 's' ),
- FT_ENC_TAG( FT_ENCODING_JOHAB, 'j', 'o', 'h', 'a' ),
+ FT_ENC_TAG(FT_ENCODING_SJIS, 's', 'j', 'i', 's'),
+ FT_ENC_TAG(FT_ENCODING_GB2312, 'g', 'b', ' ', ' '),
+ FT_ENC_TAG(FT_ENCODING_BIG5, 'b', 'i', 'g', '5'),
+ FT_ENC_TAG(FT_ENCODING_WANSUNG, 'w', 'a', 'n', 's'),
+ FT_ENC_TAG(FT_ENCODING_JOHAB, 'j', 'o', 'h', 'a'),
/* for backwards compatibility */
FT_ENCODING_MS_SJIS = FT_ENCODING_SJIS,
@@ -683,14 +683,14 @@ FT_BEGIN_HEADER
FT_ENCODING_MS_WANSUNG = FT_ENCODING_WANSUNG,
FT_ENCODING_MS_JOHAB = FT_ENCODING_JOHAB,
- FT_ENC_TAG( FT_ENCODING_ADOBE_STANDARD, 'A', 'D', 'O', 'B' ),
- FT_ENC_TAG( FT_ENCODING_ADOBE_EXPERT, 'A', 'D', 'B', 'E' ),
- FT_ENC_TAG( FT_ENCODING_ADOBE_CUSTOM, 'A', 'D', 'B', 'C' ),
- FT_ENC_TAG( FT_ENCODING_ADOBE_LATIN_1, 'l', 'a', 't', '1' ),
+ FT_ENC_TAG(FT_ENCODING_ADOBE_STANDARD, 'A', 'D', 'O', 'B'),
+ FT_ENC_TAG(FT_ENCODING_ADOBE_EXPERT, 'A', 'D', 'B', 'E'),
+ FT_ENC_TAG(FT_ENCODING_ADOBE_CUSTOM, 'A', 'D', 'B', 'C'),
+ FT_ENC_TAG(FT_ENCODING_ADOBE_LATIN_1, 'l', 'a', 't', '1'),
- FT_ENC_TAG( FT_ENCODING_OLD_LATIN_2, 'l', 'a', 't', '2' ),
+ FT_ENC_TAG(FT_ENCODING_OLD_LATIN_2, 'l', 'a', 't', '2'),
- FT_ENC_TAG( FT_ENCODING_APPLE_ROMAN, 'a', 'r', 'm', 'n' )
+ FT_ENC_TAG(FT_ENCODING_APPLE_ROMAN, 'a', 'r', 'm', 'n')
} FT_Encoding;
@@ -1084,27 +1084,27 @@ FT_BEGIN_HEADER
/* Set if the font has color glyph tables. To access color glyphs */
/* use @FT_LOAD_COLOR. */
/* */
-#define FT_FACE_FLAG_SCALABLE ( 1L << 0 )
-#define FT_FACE_FLAG_FIXED_SIZES ( 1L << 1 )
-#define FT_FACE_FLAG_FIXED_WIDTH ( 1L << 2 )
-#define FT_FACE_FLAG_SFNT ( 1L << 3 )
-#define FT_FACE_FLAG_HORIZONTAL ( 1L << 4 )
-#define FT_FACE_FLAG_VERTICAL ( 1L << 5 )
-#define FT_FACE_FLAG_KERNING ( 1L << 6 )
-#define FT_FACE_FLAG_FAST_GLYPHS ( 1L << 7 )
-#define FT_FACE_FLAG_MULTIPLE_MASTERS ( 1L << 8 )
-#define FT_FACE_FLAG_GLYPH_NAMES ( 1L << 9 )
-#define FT_FACE_FLAG_EXTERNAL_STREAM ( 1L << 10 )
-#define FT_FACE_FLAG_HINTER ( 1L << 11 )
-#define FT_FACE_FLAG_CID_KEYED ( 1L << 12 )
-#define FT_FACE_FLAG_TRICKY ( 1L << 13 )
-#define FT_FACE_FLAG_COLOR ( 1L << 14 )
+#define FT_FACE_FLAG_SCALABLE (1L << 0)
+#define FT_FACE_FLAG_FIXED_SIZES (1L << 1)
+#define FT_FACE_FLAG_FIXED_WIDTH (1L << 2)
+#define FT_FACE_FLAG_SFNT (1L << 3)
+#define FT_FACE_FLAG_HORIZONTAL (1L << 4)
+#define FT_FACE_FLAG_VERTICAL (1L << 5)
+#define FT_FACE_FLAG_KERNING (1L << 6)
+#define FT_FACE_FLAG_FAST_GLYPHS (1L << 7)
+#define FT_FACE_FLAG_MULTIPLE_MASTERS (1L << 8)
+#define FT_FACE_FLAG_GLYPH_NAMES (1L << 9)
+#define FT_FACE_FLAG_EXTERNAL_STREAM (1L << 10)
+#define FT_FACE_FLAG_HINTER (1L << 11)
+#define FT_FACE_FLAG_CID_KEYED (1L << 12)
+#define FT_FACE_FLAG_TRICKY (1L << 13)
+#define FT_FACE_FLAG_COLOR (1L << 14)
/*************************************************************************
*
* @macro:
- * FT_HAS_HORIZONTAL( face )
+ * FT_HAS_HORIZONTAL(face)
*
* @description:
* A macro that returns true whenever a face object contains
@@ -1114,42 +1114,42 @@ FT_BEGIN_HEADER
* @FT_HAS_VERTICAL can be used to check for vertical metrics.
*
*/
-#define FT_HAS_HORIZONTAL( face ) \
- ( face->face_flags & FT_FACE_FLAG_HORIZONTAL )
+#define FT_HAS_HORIZONTAL(face) \
+ (face->face_flags & FT_FACE_FLAG_HORIZONTAL)
/*************************************************************************
*
* @macro:
- * FT_HAS_VERTICAL( face )
+ * FT_HAS_VERTICAL(face)
*
* @description:
* A macro that returns true whenever a face object contains real
* vertical metrics (and not only synthesized ones).
*
*/
-#define FT_HAS_VERTICAL( face ) \
- ( face->face_flags & FT_FACE_FLAG_VERTICAL )
+#define FT_HAS_VERTICAL(face) \
+ (face->face_flags & FT_FACE_FLAG_VERTICAL)
/*************************************************************************
*
* @macro:
- * FT_HAS_KERNING( face )
+ * FT_HAS_KERNING(face)
*
* @description:
* A macro that returns true whenever a face object contains kerning
* data that can be accessed with @FT_Get_Kerning.
*
*/
-#define FT_HAS_KERNING( face ) \
- ( face->face_flags & FT_FACE_FLAG_KERNING )
+#define FT_HAS_KERNING(face) \
+ (face->face_flags & FT_FACE_FLAG_KERNING)
/*************************************************************************
*
* @macro:
- * FT_IS_SCALABLE( face )
+ * FT_IS_SCALABLE(face)
*
* @description:
* A macro that returns true whenever a face object contains a scalable
@@ -1157,14 +1157,14 @@ FT_BEGIN_HEADER
* and PFR font formats.
*
*/
-#define FT_IS_SCALABLE( face ) \
- ( face->face_flags & FT_FACE_FLAG_SCALABLE )
+#define FT_IS_SCALABLE(face) \
+ (face->face_flags & FT_FACE_FLAG_SCALABLE)
/*************************************************************************
*
* @macro:
- * FT_IS_SFNT( face )
+ * FT_IS_SFNT(face)
*
* @description:
* A macro that returns true whenever a face object contains a font
@@ -1176,14 +1176,14 @@ FT_BEGIN_HEADER
* @FT_TRUETYPE_TABLES_H are available.
*
*/
-#define FT_IS_SFNT( face ) \
- ( face->face_flags & FT_FACE_FLAG_SFNT )
+#define FT_IS_SFNT(face) \
+ (face->face_flags & FT_FACE_FLAG_SFNT)
/*************************************************************************
*
* @macro:
- * FT_IS_FIXED_WIDTH( face )
+ * FT_IS_FIXED_WIDTH(face)
*
* @description:
* A macro that returns true whenever a face object contains a font face
@@ -1191,14 +1191,14 @@ FT_BEGIN_HEADER
* glyphs.
*
*/
-#define FT_IS_FIXED_WIDTH( face ) \
- ( face->face_flags & FT_FACE_FLAG_FIXED_WIDTH )
+#define FT_IS_FIXED_WIDTH(face) \
+ (face->face_flags & FT_FACE_FLAG_FIXED_WIDTH)
/*************************************************************************
*
* @macro:
- * FT_HAS_FIXED_SIZES( face )
+ * FT_HAS_FIXED_SIZES(face)
*
* @description:
* A macro that returns true whenever a face object contains some
@@ -1206,40 +1206,40 @@ FT_BEGIN_HEADER
* @FT_FaceRec structure.
*
*/
-#define FT_HAS_FIXED_SIZES( face ) \
- ( face->face_flags & FT_FACE_FLAG_FIXED_SIZES )
+#define FT_HAS_FIXED_SIZES(face) \
+ (face->face_flags & FT_FACE_FLAG_FIXED_SIZES)
/*************************************************************************
*
* @macro:
- * FT_HAS_FAST_GLYPHS( face )
+ * FT_HAS_FAST_GLYPHS(face)
*
* @description:
* Deprecated.
*
*/
-#define FT_HAS_FAST_GLYPHS( face ) 0
+#define FT_HAS_FAST_GLYPHS(face) 0
/*************************************************************************
*
* @macro:
- * FT_HAS_GLYPH_NAMES( face )
+ * FT_HAS_GLYPH_NAMES(face)
*
* @description:
* A macro that returns true whenever a face object contains some glyph
* names that can be accessed through @FT_Get_Glyph_Name.
*
*/
-#define FT_HAS_GLYPH_NAMES( face ) \
- ( face->face_flags & FT_FACE_FLAG_GLYPH_NAMES )
+#define FT_HAS_GLYPH_NAMES(face) \
+ (face->face_flags & FT_FACE_FLAG_GLYPH_NAMES)
/*************************************************************************
*
* @macro:
- * FT_HAS_MULTIPLE_MASTERS( face )
+ * FT_HAS_MULTIPLE_MASTERS(face)
*
* @description:
* A macro that returns true whenever a face object contains some
@@ -1247,14 +1247,14 @@ FT_BEGIN_HEADER
* are then available to choose the exact design you want.
*
*/
-#define FT_HAS_MULTIPLE_MASTERS( face ) \
- ( face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS )
+#define FT_HAS_MULTIPLE_MASTERS(face) \
+ (face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS)
/*************************************************************************
*
* @macro:
- * FT_IS_CID_KEYED( face )
+ * FT_IS_CID_KEYED(face)
*
* @description:
* A macro that returns true whenever a face object contains a CID-keyed
@@ -1265,36 +1265,36 @@ FT_BEGIN_HEADER
* available.
*
*/
-#define FT_IS_CID_KEYED( face ) \
- ( face->face_flags & FT_FACE_FLAG_CID_KEYED )
+#define FT_IS_CID_KEYED(face) \
+ (face->face_flags & FT_FACE_FLAG_CID_KEYED)
/*************************************************************************
*
* @macro:
- * FT_IS_TRICKY( face )
+ * FT_IS_TRICKY(face)
*
* @description:
* A macro that returns true whenever a face represents a `tricky' font.
* See the discussion of @FT_FACE_FLAG_TRICKY for more details.
*
*/
-#define FT_IS_TRICKY( face ) \
- ( face->face_flags & FT_FACE_FLAG_TRICKY )
+#define FT_IS_TRICKY(face) \
+ (face->face_flags & FT_FACE_FLAG_TRICKY)
/*************************************************************************
*
* @macro:
- * FT_HAS_COLOR( face )
+ * FT_HAS_COLOR(face)
*
* @description:
* A macro that returns true whenever a face object contains
* tables for color glyphs.
*
*/
-#define FT_HAS_COLOR( face ) \
- ( face->face_flags & FT_FACE_FLAG_COLOR )
+#define FT_HAS_COLOR(face) \
+ (face->face_flags & FT_FACE_FLAG_COLOR)
/*************************************************************************/
@@ -1319,8 +1319,8 @@ FT_BEGIN_HEADER
/* (for example, by analyzing various fields of the `OS/2' table in */
/* SFNT based fonts). */
/* */
-#define FT_STYLE_FLAG_ITALIC ( 1 << 0 )
-#define FT_STYLE_FLAG_BOLD ( 1 << 1 )
+#define FT_STYLE_FLAG_ITALIC (1 << 0)
+#define FT_STYLE_FLAG_BOLD (1 << 1)
/*************************************************************************/
@@ -1622,9 +1622,9 @@ FT_BEGIN_HEADER
/* */
/* <load glyph with `FT_Load_Glyph'> */
/* */
- /* if ( prev_rsb_delta - face->glyph->lsb_delta >= 32 ) */
+ /* if (prev_rsb_delta - face->glyph->lsb_delta >= 32) */
/* origin_x -= 64; */
- /* else if ( prev_rsb_delta - face->glyph->lsb_delta < -32 ) */
+ /* else if (prev_rsb_delta - face->glyph->lsb_delta < -32) */
/* origin_x += 64; */
/* */
/* prev_rsb_delta = face->glyph->rsb_delta; */
@@ -1707,8 +1707,8 @@ FT_BEGIN_HEADER
/* If you need reference-counting (cf. @FT_Reference_Library), use */
/* @FT_New_Library and @FT_Done_Library. */
/* */
- FT_EXPORT( FT_Error )
- FT_Init_FreeType( FT_Library *alibrary );
+ FT_EXPORT(FT_Error)
+ FT_Init_FreeType(FT_Library *alibrary);
/*************************************************************************/
@@ -1726,8 +1726,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0~means success. */
/* */
- FT_EXPORT( FT_Error )
- FT_Done_FreeType( FT_Library library );
+ FT_EXPORT(FT_Error)
+ FT_Done_FreeType(FT_Library library);
/*************************************************************************/
@@ -1905,11 +1905,11 @@ FT_BEGIN_HEADER
/* Use @FT_Done_Face to destroy the created @FT_Face object (along */
/* with its slot and sizes). */
/* */
- FT_EXPORT( FT_Error )
- FT_New_Face( FT_Library library,
+ FT_EXPORT(FT_Error)
+ FT_New_Face(FT_Library library,
const char* filepathname,
FT_Long face_index,
- FT_Face *aface );
+ FT_Face *aface);
/*************************************************************************/
@@ -1943,12 +1943,12 @@ FT_BEGIN_HEADER
/* <Note> */
/* You must not deallocate the memory before calling @FT_Done_Face. */
/* */
- FT_EXPORT( FT_Error )
- FT_New_Memory_Face( FT_Library library,
+ FT_EXPORT(FT_Error)
+ FT_New_Memory_Face(FT_Library library,
const FT_Byte* file_base,
FT_Long file_size,
FT_Long face_index,
- FT_Face *aface );
+ FT_Face *aface);
/*************************************************************************/
@@ -2003,11 +2003,11 @@ FT_BEGIN_HEADER
/* See the discussion of reference counters in the description of */
/* @FT_Reference_Face. */
/* */
- FT_EXPORT( FT_Error )
- FT_Open_Face( FT_Library library,
+ FT_EXPORT(FT_Error)
+ FT_Open_Face(FT_Library library,
const FT_Open_Args* args,
FT_Long face_index,
- FT_Face *aface );
+ FT_Face *aface);
/*************************************************************************/
@@ -2027,9 +2027,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0~means success. */
/* */
- FT_EXPORT( FT_Error )
- FT_Attach_File( FT_Face face,
- const char* filepathname );
+ FT_EXPORT(FT_Error)
+ FT_Attach_File(FT_Face face,
+ const char* filepathname);
/*************************************************************************/
@@ -2062,9 +2062,9 @@ FT_BEGIN_HEADER
/* when invoking this function. Most drivers simply do not implement */
/* file attachments. */
/* */
- FT_EXPORT( FT_Error )
- FT_Attach_Stream( FT_Face face,
- FT_Open_Args* parameters );
+ FT_EXPORT(FT_Error)
+ FT_Attach_Stream(FT_Face face,
+ FT_Open_Args* parameters);
/*************************************************************************/
@@ -2090,8 +2090,8 @@ FT_BEGIN_HEADER
/* <Since> */
/* 2.4.2 */
/* */
- FT_EXPORT( FT_Error )
- FT_Reference_Face( FT_Face face );
+ FT_EXPORT(FT_Error)
+ FT_Reference_Face(FT_Face face);
/*************************************************************************/
@@ -2113,8 +2113,8 @@ FT_BEGIN_HEADER
/* See the discussion of reference counters in the description of */
/* @FT_Reference_Face. */
/* */
- FT_EXPORT( FT_Error )
- FT_Done_Face( FT_Face face );
+ FT_EXPORT(FT_Error)
+ FT_Done_Face(FT_Face face);
/*************************************************************************/
@@ -2135,9 +2135,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0~means success. */
/* */
- FT_EXPORT( FT_Error )
- FT_Select_Size( FT_Face face,
- FT_Int strike_index );
+ FT_EXPORT(FT_Error)
+ FT_Select_Size(FT_Face face,
+ FT_Int strike_index);
/*************************************************************************/
@@ -2273,9 +2273,9 @@ FT_BEGIN_HEADER
/* glyph relative to this size. For more information refer to */
/* `http://www.freetype.org/freetype2/docs/glyphs/glyphs-2.html' */
/* */
- FT_EXPORT( FT_Error )
- FT_Request_Size( FT_Face face,
- FT_Size_Request req );
+ FT_EXPORT(FT_Error)
+ FT_Request_Size(FT_Face face,
+ FT_Size_Request req);
/*************************************************************************/
@@ -2314,12 +2314,12 @@ FT_BEGIN_HEADER
/* */
/* Don't use this function if you are using the FreeType cache API. */
/* */
- FT_EXPORT( FT_Error )
- FT_Set_Char_Size( FT_Face face,
+ FT_EXPORT(FT_Error)
+ FT_Set_Char_Size(FT_Face face,
FT_F26Dot6 char_width,
FT_F26Dot6 char_height,
FT_UInt horz_resolution,
- FT_UInt vert_resolution );
+ FT_UInt vert_resolution);
/*************************************************************************/
@@ -2347,10 +2347,10 @@ FT_BEGIN_HEADER
/* constrained, to this pixel size. Refer to @FT_Request_Size to */
/* understand how requested sizes relate to actual sizes. */
/* */
- FT_EXPORT( FT_Error )
- FT_Set_Pixel_Sizes( FT_Face face,
+ FT_EXPORT(FT_Error)
+ FT_Set_Pixel_Sizes(FT_Face face,
FT_UInt pixel_width,
- FT_UInt pixel_height );
+ FT_UInt pixel_height);
/*************************************************************************/
@@ -2389,10 +2389,10 @@ FT_BEGIN_HEADER
/* don't have a corresponding glyph in the font). See the discussion */
/* of the @FT_FACE_FLAG_CID_KEYED flag for more details. */
/* */
- FT_EXPORT( FT_Error )
- FT_Load_Glyph( FT_Face face,
+ FT_EXPORT(FT_Error)
+ FT_Load_Glyph(FT_Face face,
FT_UInt glyph_index,
- FT_Int32 load_flags );
+ FT_Int32 load_flags);
/*************************************************************************/
@@ -2424,10 +2424,10 @@ FT_BEGIN_HEADER
/* <Note> */
/* This function simply calls @FT_Get_Char_Index and @FT_Load_Glyph. */
/* */
- FT_EXPORT( FT_Error )
- FT_Load_Char( FT_Face face,
+ FT_EXPORT(FT_Error)
+ FT_Load_Char(FT_Face face,
FT_ULong char_code,
- FT_Int32 load_flags );
+ FT_Int32 load_flags);
/*************************************************************************
@@ -2587,28 +2587,28 @@ FT_BEGIN_HEADER
*
*/
#define FT_LOAD_DEFAULT 0x0
-#define FT_LOAD_NO_SCALE ( 1L << 0 )
-#define FT_LOAD_NO_HINTING ( 1L << 1 )
-#define FT_LOAD_RENDER ( 1L << 2 )
-#define FT_LOAD_NO_BITMAP ( 1L << 3 )
-#define FT_LOAD_VERTICAL_LAYOUT ( 1L << 4 )
-#define FT_LOAD_FORCE_AUTOHINT ( 1L << 5 )
-#define FT_LOAD_CROP_BITMAP ( 1L << 6 )
-#define FT_LOAD_PEDANTIC ( 1L << 7 )
-#define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH ( 1L << 9 )
-#define FT_LOAD_NO_RECURSE ( 1L << 10 )
-#define FT_LOAD_IGNORE_TRANSFORM ( 1L << 11 )
-#define FT_LOAD_MONOCHROME ( 1L << 12 )
-#define FT_LOAD_LINEAR_DESIGN ( 1L << 13 )
-#define FT_LOAD_NO_AUTOHINT ( 1L << 15 )
+#define FT_LOAD_NO_SCALE (1L << 0)
+#define FT_LOAD_NO_HINTING (1L << 1)
+#define FT_LOAD_RENDER (1L << 2)
+#define FT_LOAD_NO_BITMAP (1L << 3)
+#define FT_LOAD_VERTICAL_LAYOUT (1L << 4)
+#define FT_LOAD_FORCE_AUTOHINT (1L << 5)
+#define FT_LOAD_CROP_BITMAP (1L << 6)
+#define FT_LOAD_PEDANTIC (1L << 7)
+#define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH (1L << 9)
+#define FT_LOAD_NO_RECURSE (1L << 10)
+#define FT_LOAD_IGNORE_TRANSFORM (1L << 11)
+#define FT_LOAD_MONOCHROME (1L << 12)
+#define FT_LOAD_LINEAR_DESIGN (1L << 13)
+#define FT_LOAD_NO_AUTOHINT (1L << 15)
/* Bits 16..19 are used by `FT_LOAD_TARGET_' */
-#define FT_LOAD_COLOR ( 1L << 20 )
+#define FT_LOAD_COLOR (1L << 20)
/* */
/* used internally only by certain font drivers! */
-#define FT_LOAD_ADVANCE_ONLY ( 1L << 8 )
-#define FT_LOAD_SBITS_ONLY ( 1L << 14 )
+#define FT_LOAD_ADVANCE_ONLY (1L << 8)
+#define FT_LOAD_SBITS_ONLY (1L << 14)
/**************************************************************************
@@ -2669,20 +2669,20 @@ FT_BEGIN_HEADER
* pixel mode, with code like
*
* {
- * FT_Load_Glyph( face, glyph_index,
- * load_flags | FT_LOAD_TARGET_LIGHT );
+ * FT_Load_Glyph(face, glyph_index,
+ * load_flags | FT_LOAD_TARGET_LIGHT);
*
- * FT_Render_Glyph( face->glyph, FT_RENDER_MODE_LCD );
+ * FT_Render_Glyph(face->glyph, FT_RENDER_MODE_LCD);
* }
*
*/
-#define FT_LOAD_TARGET_( x ) ( (FT_Int32)( (x) & 15 ) << 16 )
+#define FT_LOAD_TARGET_(x) ((FT_Int32)((x) & 15) << 16)
-#define FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_( FT_RENDER_MODE_NORMAL )
-#define FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_( FT_RENDER_MODE_LIGHT )
-#define FT_LOAD_TARGET_MONO FT_LOAD_TARGET_( FT_RENDER_MODE_MONO )
-#define FT_LOAD_TARGET_LCD FT_LOAD_TARGET_( FT_RENDER_MODE_LCD )
-#define FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_( FT_RENDER_MODE_LCD_V )
+#define FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_(FT_RENDER_MODE_NORMAL)
+#define FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_(FT_RENDER_MODE_LIGHT)
+#define FT_LOAD_TARGET_MONO FT_LOAD_TARGET_(FT_RENDER_MODE_MONO)
+#define FT_LOAD_TARGET_LCD FT_LOAD_TARGET_(FT_RENDER_MODE_LCD)
+#define FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_(FT_RENDER_MODE_LCD_V)
/**************************************************************************
@@ -2695,7 +2695,7 @@ FT_BEGIN_HEADER
* @FT_LOAD_TARGET_XXX value.
*
*/
-#define FT_LOAD_TARGET_MODE( x ) ( (FT_Render_Mode)( ( (x) >> 16 ) & 15 ) )
+#define FT_LOAD_TARGET_MODE(x) ((FT_Render_Mode)(((x) >> 16) & 15))
/*************************************************************************/
@@ -2726,10 +2726,10 @@ FT_BEGIN_HEADER
/* Note that this also transforms the `face.glyph.advance' field, but */
/* *not* the values in `face.glyph.metrics'. */
/* */
- FT_EXPORT( void )
- FT_Set_Transform( FT_Face face,
+ FT_EXPORT(void)
+ FT_Set_Transform(FT_Face face,
FT_Matrix* matrix,
- FT_Vector* delta );
+ FT_Vector* delta);
/*************************************************************************/
@@ -2839,9 +2839,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* FreeType error code. 0~means success. */
/* */
- FT_EXPORT( FT_Error )
- FT_Render_Glyph( FT_GlyphSlot slot,
- FT_Render_Mode render_mode );
+ FT_EXPORT(FT_Error)
+ FT_Render_Glyph(FT_GlyphSlot slot,
+ FT_Render_Mode render_mode);
/*************************************************************************/
@@ -2941,12 +2941,12 @@ FT_BEGIN_HEADER
/* kernings, are out of the scope of this API function -- they can be */
/* implemented through format-specific interfaces. */
/* */
- FT_EXPORT( FT_Error )
- FT_Get_Kerning( FT_Face face,
+ FT_EXPORT(FT_Error)
+ FT_Get_Kerning(FT_Face face,
FT_UInt left_glyph,
FT_UInt right_glyph,
FT_UInt kern_mode,
- FT_Vector *akerning );
+ FT_Vector *akerning);
/*************************************************************************/
@@ -2982,11 +2982,11 @@ FT_BEGIN_HEADER
/* Only very few AFM files come with track kerning data; please refer */
/* to the Adobe's AFM specification for more details. */
/* */
- FT_EXPORT( FT_Error )
- FT_Get_Track_Kerning( FT_Face face,
+ FT_EXPORT(FT_Error)
+ FT_Get_Track_Kerning(FT_Face face,
FT_Fixed point_size,
FT_Int degree,
- FT_Fixed* akerning );
+ FT_Fixed* akerning);
/*************************************************************************/
@@ -3029,11 +3029,11 @@ FT_BEGIN_HEADER
/* macro `FT_CONFIG_OPTION_NO_GLYPH_NAMES' is defined in */
/* `ftoptions.h'. */
/* */
- FT_EXPORT( FT_Error )
- FT_Get_Glyph_Name( FT_Face face,
+ FT_EXPORT(FT_Error)
+ FT_Get_Glyph_Name(FT_Face face,
FT_UInt glyph_index,
FT_Pointer buffer,
- FT_UInt buffer_max );
+ FT_UInt buffer_max);
/*************************************************************************/
@@ -3055,8 +3055,8 @@ FT_BEGIN_HEADER
/* The returned pointer is owned by the face and is destroyed with */
/* it. */
/* */
- FT_EXPORT( const char* )
- FT_Get_Postscript_Name( FT_Face face );
+ FT_EXPORT(const char*)
+ FT_Get_Postscript_Name(FT_Face face);
/*************************************************************************/
@@ -3087,9 +3087,9 @@ FT_BEGIN_HEADER
/* preferred to a UCS-2 cmap). It is thus preferable to */
/* @FT_Set_Charmap in this case. */
/* */
- FT_EXPORT( FT_Error )
- FT_Select_Charmap( FT_Face face,
- FT_Encoding encoding );
+ FT_EXPORT(FT_Error)
+ FT_Select_Charmap(FT_Face face,
+ FT_Encoding encoding);
/*************************************************************************/
@@ -3116,9 +3116,9 @@ FT_BEGIN_HEADER
/* */
/* It also fails if a type~14 charmap is selected. */
/* */
- FT_EXPORT( FT_Error )
- FT_Set_Charmap( FT_Face face,
- FT_CharMap charmap );
+ FT_EXPORT(FT_Error)
+ FT_Set_Charmap(FT_Face face,
+ FT_CharMap charmap);
/*************************************************************************
@@ -3138,8 +3138,8 @@ FT_BEGIN_HEADER
* `charmap' belongs. If an error occurs, -1 is returned.
*
*/
- FT_EXPORT( FT_Int )
- FT_Get_Charmap_Index( FT_CharMap charmap );
+ FT_EXPORT(FT_Int)
+ FT_Get_Charmap_Index(FT_CharMap charmap);
/*************************************************************************/
@@ -3172,9 +3172,9 @@ FT_BEGIN_HEADER
/* whatever was there will be moved to the last index -- Type~42 */
/* fonts are considered invalid under this condition. */
/* */
- FT_EXPORT( FT_UInt )
- FT_Get_Char_Index( FT_Face face,
- FT_ULong charcode );
+ FT_EXPORT(FT_UInt)
+ FT_Get_Char_Index(FT_Face face,
+ FT_ULong charcode);
/*************************************************************************/
@@ -3207,12 +3207,12 @@ FT_BEGIN_HEADER
/* FT_UInt gindex; */
/* */
/* */
- /* charcode = FT_Get_First_Char( face, &gindex ); */
- /* while ( gindex != 0 ) */
+ /* charcode = FT_Get_First_Char(face, &gindex); */
+ /* while (gindex != 0) */
/* { */
/* ... do something with (charcode,gindex) pair ... */
/* */
- /* charcode = FT_Get_Next_Char( face, charcode, &gindex ); */
+ /* charcode = FT_Get_Next_Char(face, charcode, &gindex); */
/* } */
/* } */
/* */
@@ -3220,9 +3220,9 @@ FT_BEGIN_HEADER
/* result itself can be~0 in two cases: if the charmap is empty or */
/* if the value~0 is the first valid character code. */
/* */
- FT_EXPORT( FT_ULong )
- FT_Get_First_Char( FT_Face face,
- FT_UInt *agindex );
+ FT_EXPORT(FT_ULong)
+ FT_Get_First_Char(FT_Face face,
+ FT_UInt *agindex);
/*************************************************************************/
@@ -3254,10 +3254,10 @@ FT_BEGIN_HEADER
/* Note that `*agindex' is set to~0 when there are no more codes in */
/* the charmap. */
/* */
- FT_EXPORT( FT_ULong )
- FT_Get_Next_Char( FT_Face face,
+ FT_EXPORT(FT_ULong)
+ FT_Get_Next_Char(FT_Face face,
FT_ULong char_code,
- FT_UInt *agindex );
+ FT_UInt *agindex);
/*************************************************************************/
@@ -3277,9 +3277,9 @@ FT_BEGIN_HEADER
/* <Return> */
/* The glyph index. 0~means `undefined character code'. */
/* */
- FT_EXPORT( FT_UInt )
- FT_Get_Name_Index( FT_Face face,
- FT_String* glyph_name );
+ FT_EXPORT(FT_UInt)
+ FT_Get_Name_Index(FT_Face face,
+ FT_String* glyph_name);
/*************************************************************************
@@ -3353,14 +3353,14 @@ FT_BEGIN_HEADER
* TrueType specification for details.
*
*/
- FT_EXPORT( FT_Error )
- FT_Get_SubGlyph_Info( FT_GlyphSlot glyph,
+ FT_EXPORT(FT_Error)
+ FT_Get_SubGlyph_Info(FT_GlyphSlot glyph,
FT_UInt sub_index,
FT_Int *p_index,
FT_UInt *p_flags,
FT_Int *p_arg1,
FT_Int *p_arg2,
- FT_Matrix *p_transform );
+ FT_Matrix *p_transform);
/*************************************************************************/
@@ -3444,8 +3444,8 @@ FT_BEGIN_HEADER
/* <Since> */
/* 2.3.8 */
/* */
- FT_EXPORT( FT_UShort )
- FT_Get_FSType_Flags( FT_Face face );
+ FT_EXPORT(FT_UShort)
+ FT_Get_FSType_Flags(FT_Face face);
/*************************************************************************/
@@ -3530,10 +3530,10 @@ FT_BEGIN_HEADER
/* <Since> */
/* 2.3.6 */
/* */
- FT_EXPORT( FT_UInt )
- FT_Face_GetCharVariantIndex( FT_Face face,
+ FT_EXPORT(FT_UInt)
+ FT_Face_GetCharVariantIndex(FT_Face face,
FT_ULong charcode,
- FT_ULong variantSelector );
+ FT_ULong variantSelector);
/*************************************************************************/
@@ -3566,10 +3566,10 @@ FT_BEGIN_HEADER
/* <Since> */
/* 2.3.6 */
/* */
- FT_EXPORT( FT_Int )
- FT_Face_GetCharVariantIsDefault( FT_Face face,
+ FT_EXPORT(FT_Int)
+ FT_Face_GetCharVariantIsDefault(FT_Face face,
FT_ULong charcode,
- FT_ULong variantSelector );
+ FT_ULong variantSelector);
/*************************************************************************/
@@ -3597,8 +3597,8 @@ FT_BEGIN_HEADER
/* <Since> */
/* 2.3.6 */
/* */
- FT_EXPORT( FT_UInt32* )
- FT_Face_GetVariantSelectors( FT_Face face );
+ FT_EXPORT(FT_UInt32*)
+ FT_Face_GetVariantSelectors(FT_Face face);
/*************************************************************************/
@@ -3630,9 +3630,9 @@ FT_BEGIN_HEADER
/* <Since> */
/* 2.3.6 */
/* */
- FT_EXPORT( FT_UInt32* )
- FT_Face_GetVariantsOfChar( FT_Face face,
- FT_ULong charcode );
+ FT_EXPORT(FT_UInt32*)
+ FT_Face_GetVariantsOfChar(FT_Face face,
+ FT_ULong charcode);
/*************************************************************************/
@@ -3664,9 +3664,9 @@ FT_BEGIN_HEADER
/* <Since> */
/* 2.3.6 */
/* */
- FT_EXPORT( FT_UInt32* )
- FT_Face_GetCharsOfVariant( FT_Face face,
- FT_ULong variantSelector );
+ FT_EXPORT(FT_UInt32*)
+ FT_Face_GetCharsOfVariant(FT_Face face,
+ FT_ULong variantSelector);
/*************************************************************************/
@@ -3721,10 +3721,10 @@ FT_BEGIN_HEADER
/* divide by zero; it simply returns `MaxInt' or `MinInt' depending */
/* on the signs of `a' and `b'. */
/* */
- FT_EXPORT( FT_Long )
- FT_MulDiv( FT_Long a,
+ FT_EXPORT(FT_Long)
+ FT_MulDiv(FT_Long a,
FT_Long b,
- FT_Long c );
+ FT_Long c);
/* */
@@ -3762,19 +3762,19 @@ FT_BEGIN_HEADER
/* _second_ argument of this function; this can make a great */
/* difference. */
/* */
- FT_EXPORT( FT_Long )
- FT_MulFix( FT_Long a,
- FT_Long b );
+ FT_EXPORT(FT_Long)
+ FT_MulFix(FT_Long a,
+ FT_Long b);
/* */
#endif
#ifdef FT_MULFIX_INLINED
-#define FT_MulFix( a, b ) FT_MULFIX_INLINED( a, b )
+#define FT_MulFix(a, b) FT_MULFIX_INLINED(a, b)
#else
- FT_EXPORT( FT_Long )
- FT_MulFix( FT_Long a,
- FT_Long b );
+ FT_EXPORT(FT_Long)
+ FT_MulFix(FT_Long a,
+ FT_Long b);
#endif
@@ -3801,9 +3801,9 @@ FT_BEGIN_HEADER
/* 32~bits, then the division is computed directly. Otherwise, we */
/* use a specialized version of @FT_MulDiv. */
/* */
- FT_EXPORT( FT_Long )
- FT_DivFix( FT_Long a,
- FT_Long b );
+ FT_EXPORT(FT_Long)
+ FT_DivFix(FT_Long a,
+ FT_Long b);
/*************************************************************************/
@@ -3820,8 +3820,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* The result of `(a + 0x8000) & -0x10000'. */
/* */
- FT_EXPORT( FT_Fixed )
- FT_RoundFix( FT_Fixed a );
+ FT_EXPORT(FT_Fixed)
+ FT_RoundFix(FT_Fixed a);
/*************************************************************************/
@@ -3839,8 +3839,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* The result of `(a + 0x10000 - 1) & -0x10000'. */
/* */
- FT_EXPORT( FT_Fixed )
- FT_CeilFix( FT_Fixed a );
+ FT_EXPORT(FT_Fixed)
+ FT_CeilFix(FT_Fixed a);
/*************************************************************************/
@@ -3858,8 +3858,8 @@ FT_BEGIN_HEADER
/* <Return> */
/* The result of `a & -0x10000'. */
/* */
- FT_EXPORT( FT_Fixed )
- FT_FloorFix( FT_Fixed a );
+ FT_EXPORT(FT_Fixed)
+ FT_FloorFix(FT_Fixed a);
/*************************************************************************/
@@ -3879,9 +3879,9 @@ FT_BEGIN_HEADER
/* <Note> */
/* The result is undefined if either `vector' or `matrix' is invalid. */
/* */
- FT_EXPORT( void )
- FT_Vector_Transform( FT_Vector* vec,
- const FT_Matrix* matrix );
+ FT_EXPORT(void)
+ FT_Vector_Transform(FT_Vector* vec,
+ const FT_Matrix* matrix);
/*************************************************************************/
@@ -3957,11 +3957,11 @@ FT_BEGIN_HEADER
/* In such cases, the library version might not be available before */
/* the library object has been created. */
/* */
- FT_EXPORT( void )
- FT_Library_Version( FT_Library library,
+ FT_EXPORT(void)
+ FT_Library_Version(FT_Library library,
FT_Int *amajor,
FT_Int *aminor,
- FT_Int *apatch );
+ FT_Int *apatch);
/*************************************************************************/
@@ -3991,8 +3991,8 @@ FT_BEGIN_HEADER
/* <Since> */
/* 2.3.5 */
/* */
- FT_EXPORT( FT_Bool )
- FT_Face_CheckTrueTypePatents( FT_Face face );
+ FT_EXPORT(FT_Bool)
+ FT_Face_CheckTrueTypePatents(FT_Face face);
/*************************************************************************/
@@ -4021,9 +4021,9 @@ FT_BEGIN_HEADER
/* <Since> */
/* 2.3.5 */
/* */
- FT_EXPORT( FT_Bool )
- FT_Face_SetUnpatentedHinting( FT_Face face,
- FT_Bool value );
+ FT_EXPORT(FT_Bool)
+ FT_Face_SetUnpatentedHinting(FT_Face face,
+ FT_Bool value);
/* */