@@ -651,11 +651,11 @@ FT_BEGIN_HEADER
651
651
/* */
652
652
/* FT_ENCODING_SJIS :: */
653
653
/* Corresponds to Japanese SJIS encoding. More info at */
654
- /* at `http://en.wikipedia.org/wiki/Shift_JIS'. */
654
+ /* `http://en.wikipedia.org/wiki/Shift_JIS'. */
655
655
/* See note on multi-byte encodings below. */
656
656
/* */
657
657
/* FT_ENCODING_GB2312 :: */
658
- /* Corresponds to an encoding system for Simplified Chinese as used */
658
+ /* Corresponds to an encoding system for Simplified Chinese as */
659
659
/* used in mainland China. */
660
660
/* */
661
661
/* FT_ENCODING_BIG5 :: */
@@ -1103,7 +1103,7 @@ FT_BEGIN_HEADER
1103
1103
/* FT_FACE_FLAG_SCALABLE :: */
1104
1104
/* Indicates that the face contains outline glyphs. This doesn't */
1105
1105
/* prevent bitmap strikes, i.e., a face can have both this and */
1106
- /* and @FT_FACE_FLAG_FIXED_SIZES set. */
1106
+ /* @FT_FACE_FLAG_FIXED_SIZES set. */
1107
1107
/* */
1108
1108
/* FT_FACE_FLAG_FIXED_SIZES :: */
1109
1109
/* Indicates that the face contains bitmap strikes. See also the */
@@ -1222,7 +1222,7 @@ FT_BEGIN_HEADER
1222
1222
*
1223
1223
*/
1224
1224
#define FT_HAS_HORIZONTAL ( face ) \
1225
- ( face->face_flags & FT_FACE_FLAG_HORIZONTAL )
1225
+ ( ( face) ->face_flags & FT_FACE_FLAG_HORIZONTAL )
1226
1226
1227
1227
1228
1228
/*************************************************************************
@@ -1236,7 +1236,7 @@ FT_BEGIN_HEADER
1236
1236
*
1237
1237
*/
1238
1238
#define FT_HAS_VERTICAL ( face ) \
1239
- ( face->face_flags & FT_FACE_FLAG_VERTICAL )
1239
+ ( ( face) ->face_flags & FT_FACE_FLAG_VERTICAL )
1240
1240
1241
1241
1242
1242
/*************************************************************************
@@ -1250,7 +1250,7 @@ FT_BEGIN_HEADER
1250
1250
*
1251
1251
*/
1252
1252
#define FT_HAS_KERNING ( face ) \
1253
- ( face->face_flags & FT_FACE_FLAG_KERNING )
1253
+ ( ( face) ->face_flags & FT_FACE_FLAG_KERNING )
1254
1254
1255
1255
1256
1256
/*************************************************************************
@@ -1265,7 +1265,7 @@ FT_BEGIN_HEADER
1265
1265
*
1266
1266
*/
1267
1267
#define FT_IS_SCALABLE ( face ) \
1268
- ( face->face_flags & FT_FACE_FLAG_SCALABLE )
1268
+ ( ( face) ->face_flags & FT_FACE_FLAG_SCALABLE )
1269
1269
1270
1270
1271
1271
/*************************************************************************
@@ -1284,7 +1284,7 @@ FT_BEGIN_HEADER
1284
1284
*
1285
1285
*/
1286
1286
#define FT_IS_SFNT ( face ) \
1287
- ( face->face_flags & FT_FACE_FLAG_SFNT )
1287
+ ( ( face) ->face_flags & FT_FACE_FLAG_SFNT )
1288
1288
1289
1289
1290
1290
/*************************************************************************
@@ -1299,7 +1299,7 @@ FT_BEGIN_HEADER
1299
1299
*
1300
1300
*/
1301
1301
#define FT_IS_FIXED_WIDTH ( face ) \
1302
- ( face->face_flags & FT_FACE_FLAG_FIXED_WIDTH )
1302
+ ( ( face) ->face_flags & FT_FACE_FLAG_FIXED_WIDTH )
1303
1303
1304
1304
1305
1305
/*************************************************************************
@@ -1314,7 +1314,7 @@ FT_BEGIN_HEADER
1314
1314
*
1315
1315
*/
1316
1316
#define FT_HAS_FIXED_SIZES ( face ) \
1317
- ( face->face_flags & FT_FACE_FLAG_FIXED_SIZES )
1317
+ ( ( face) ->face_flags & FT_FACE_FLAG_FIXED_SIZES )
1318
1318
1319
1319
1320
1320
/*************************************************************************
@@ -1340,7 +1340,7 @@ FT_BEGIN_HEADER
1340
1340
*
1341
1341
*/
1342
1342
#define FT_HAS_GLYPH_NAMES ( face ) \
1343
- ( face->face_flags & FT_FACE_FLAG_GLYPH_NAMES )
1343
+ ( ( face) ->face_flags & FT_FACE_FLAG_GLYPH_NAMES )
1344
1344
1345
1345
1346
1346
/*************************************************************************
@@ -1355,7 +1355,7 @@ FT_BEGIN_HEADER
1355
1355
*
1356
1356
*/
1357
1357
#define FT_HAS_MULTIPLE_MASTERS ( face ) \
1358
- ( face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS )
1358
+ ( ( face) ->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS )
1359
1359
1360
1360
1361
1361
/*************************************************************************
@@ -1373,7 +1373,7 @@ FT_BEGIN_HEADER
1373
1373
*
1374
1374
*/
1375
1375
#define FT_IS_CID_KEYED ( face ) \
1376
- ( face->face_flags & FT_FACE_FLAG_CID_KEYED )
1376
+ ( ( face) ->face_flags & FT_FACE_FLAG_CID_KEYED )
1377
1377
1378
1378
1379
1379
/*************************************************************************
@@ -1387,7 +1387,7 @@ FT_BEGIN_HEADER
1387
1387
*
1388
1388
*/
1389
1389
#define FT_IS_TRICKY ( face ) \
1390
- ( face->face_flags & FT_FACE_FLAG_TRICKY )
1390
+ ( ( face) ->face_flags & FT_FACE_FLAG_TRICKY )
1391
1391
1392
1392
1393
1393
/*************************************************************************
@@ -1401,7 +1401,7 @@ FT_BEGIN_HEADER
1401
1401
*
1402
1402
*/
1403
1403
#define FT_HAS_COLOR ( face ) \
1404
- ( face->face_flags & FT_FACE_FLAG_COLOR )
1404
+ ( ( face) ->face_flags & FT_FACE_FLAG_COLOR )
1405
1405
1406
1406
1407
1407
/*************************************************************************/
@@ -1941,7 +1941,7 @@ FT_BEGIN_HEADER
1941
1941
/* */
1942
1942
/* If the @FT_OPEN_MEMORY bit is set, assume that this is a */
1943
1943
/* memory file of `memory_size' bytes, located at `memory_address'. */
1944
- /* The data are are not copied, and the client is responsible for */
1944
+ /* The data are not copied, and the client is responsible for */
1945
1945
/* releasing and destroying them _after_ the corresponding call to */
1946
1946
/* @FT_Done_Face. */
1947
1947
/* */
@@ -2339,9 +2339,9 @@ FT_BEGIN_HEADER
2339
2339
/* used to determine both scaling values. */
2340
2340
/* */
2341
2341
/* FT_SIZE_REQUEST_TYPE_REAL_DIM :: */
2342
- /* The real dimension. The sum of the the `ascender' and (minus */
2343
- /* of) the `descender' fields of @FT_FaceRec are used to determine */
2344
- /* both scaling values. */
2342
+ /* The real dimension. The sum of the `ascender' and (minus of) */
2343
+ /* the `descender' fields of @FT_FaceRec are used to determine both */
2344
+ /* scaling values. */
2345
2345
/* */
2346
2346
/* FT_SIZE_REQUEST_TYPE_BBOX :: */
2347
2347
/* The font bounding box. The width and height of the `bbox' field */
@@ -2578,6 +2578,10 @@ FT_BEGIN_HEADER
2578
2578
/* don't have a corresponding glyph in the font). See the discussion */
2579
2579
/* of the @FT_FACE_FLAG_CID_KEYED flag for more details. */
2580
2580
/* */
2581
+ /* If you receive `FT_Err_Glyph_Too_Big', try getting the glyph */
2582
+ /* outline at EM size, then scale it manually and fill it as a */
2583
+ /* graphics operation. */
2584
+ /* */
2581
2585
FT_EXPORT ( FT_Error )
2582
2586
FT_Load_Glyph ( FT_Face face ,
2583
2587
FT_UInt glyph_index ,
@@ -2855,7 +2859,7 @@ FT_BEGIN_HEADER
2855
2859
*
2856
2860
* If @FT_LOAD_RENDER is also set, the glyph is rendered in the
2857
2861
* corresponding mode (i.e., the mode that matches the used algorithm
2858
- * best). An exeption is FT_LOAD_TARGET_MONO since it implies
2862
+ * best). An exception is FT_LOAD_TARGET_MONO since it implies
2859
2863
* @FT_LOAD_MONOCHROME.
2860
2864
*
2861
2865
* You can use a hinting algorithm that doesn't correspond to the same
@@ -3273,7 +3277,7 @@ FT_BEGIN_HEADER
3273
3277
/* `.notdef'). */
3274
3278
/* */
3275
3279
/* This function always returns an error if the config macro */
3276
- /* `FT_CONFIG_OPTION_NO_GLYPH_NAMES' is not defined in `ftoptions .h'. */
3280
+ /* `FT_CONFIG_OPTION_NO_GLYPH_NAMES' is not defined in `ftoption .h'. */
3277
3281
/* */
3278
3282
FT_EXPORT ( FT_Error )
3279
3283
FT_Get_Glyph_Name ( FT_Face face ,
@@ -4172,7 +4176,7 @@ FT_BEGIN_HEADER
4172
4176
*/
4173
4177
#define FREETYPE_MAJOR 2
4174
4178
#define FREETYPE_MINOR 6
4175
- #define FREETYPE_PATCH 3
4179
+ #define FREETYPE_PATCH 5
4176
4180
4177
4181
4178
4182
/*************************************************************************/
0 commit comments