121
121
/* FT_PIXEL_MODE_NONE :: */
122
/* Value 0 is reserved. */
122
/* Value~0 is reserved. */
124
124
/* FT_PIXEL_MODE_MONO :: */
125
/* A monochrome bitmap, using 1 bit per pixel. Note that pixels */
125
/* A monochrome bitmap, using 1~bit per pixel. Note that pixels */
126
126
/* are stored in most-significant order (MSB), which means that */
127
127
/* the left-most pixel in a byte has value 128. */
129
129
/* FT_PIXEL_MODE_GRAY :: */
130
130
/* An 8-bit bitmap, generally used to represent anti-aliased glyph */
131
131
/* images. Each pixel is stored in one byte. Note that the number */
132
/* of value `gray' levels is stored in the `num_bytes' field of */
133
/* the @FT_Bitmap structure (it generally is 256). */
132
/* of `gray' levels is stored in the `num_grays' field of the */
133
/* @FT_Bitmap structure (it generally is 256). */
135
135
/* FT_PIXEL_MODE_GRAY2 :: */
136
/* A 2-bit/pixel bitmap, used to represent embedded anti-aliased */
137
/* bitmaps in font files according to the OpenType specification. */
138
/* We haven't found a single font using this format, however. */
136
/* A 2-bit per pixel bitmap, used to represent embedded */
137
/* anti-aliased bitmaps in font files according to the OpenType */
138
/* specification. We haven't found a single font using this */
139
/* format, however. */
140
141
/* FT_PIXEL_MODE_GRAY4 :: */
141
/* A 4-bit/pixel bitmap, used to represent embedded anti-aliased */
142
/* A 4-bit per pixel bitmap, representing embedded anti-aliased */
142
143
/* bitmaps in font files according to the OpenType specification. */
143
144
/* We haven't found a single font using this format, however. */
145
146
/* FT_PIXEL_MODE_LCD :: */
146
/* An 8-bit bitmap, used to represent RGB or BGR decimated glyph */
147
/* images used for display on LCD displays; the bitmap is three */
148
/* times wider than the original glyph image. See also */
147
/* An 8-bit bitmap, representing RGB or BGR decimated glyph images */
148
/* used for display on LCD displays; the bitmap is three times */
149
/* wider than the original glyph image. See also */
149
150
/* @FT_RENDER_MODE_LCD. */
151
152
/* FT_PIXEL_MODE_LCD_V :: */
152
/* An 8-bit bitmap, used to represent RGB or BGR decimated glyph */
153
/* images used for display on rotated LCD displays; the bitmap */
154
/* is three times taller than the original glyph image. See also */
153
/* An 8-bit bitmap, representing RGB or BGR decimated glyph images */
154
/* used for display on rotated LCD displays; the bitmap is three */
155
/* times taller than the original glyph image. See also */
155
156
/* @FT_RENDER_MODE_LCD_V. */
157
158
typedef enum FT_Pixel_Mode_
352
353
/*************************************************************************/
355
/* FT_OUTLINE_FLAGS */
356
/* FT_OUTLINE_FLAGS */
357
358
/* <Description> */
358
359
/* A list of bit-field constants use for the flags in an outline's */
359
360
/* `flags' field. */
362
/* FT_OUTLINE_NONE :: Value 0 is reserved. */
364
/* FT_OUTLINE_OWNER :: If set, this flag indicates that the */
365
/* outline's field arrays (i.e., */
366
/* `points', `flags' & `contours') are */
367
/* `owned' by the outline object, and */
368
/* should thus be freed when it is */
371
/* FT_OUTLINE_EVEN_ODD_FILL :: By default, outlines are filled using */
372
/* the non-zero winding rule. If set to */
373
/* 1, the outline will be filled using */
374
/* the even-odd fill rule (only works */
375
/* with the smooth raster). */
377
/* FT_OUTLINE_REVERSE_FILL :: By default, outside contours of an */
378
/* outline are oriented in clock-wise */
379
/* direction, as defined in the TrueType */
380
/* specification. This flag is set if */
381
/* the outline uses the opposite */
382
/* direction (typically for Type 1 */
383
/* fonts). This flag is ignored by the */
384
/* scan-converter. */
386
/* FT_OUTLINE_IGNORE_DROPOUTS :: By default, the scan converter will */
387
/* try to detect drop-outs in an outline */
388
/* and correct the glyph bitmap to */
389
/* ensure consistent shape continuity. */
390
/* If set, this flag hints the scan-line */
391
/* converter to ignore such cases. */
393
/* FT_OUTLINE_HIGH_PRECISION :: This flag indicates that the */
394
/* scan-line converter should try to */
395
/* convert this outline to bitmaps with */
396
/* the highest possible quality. It is */
397
/* typically set for small character */
398
/* sizes. Note that this is only a */
399
/* hint, that might be completely */
400
/* ignored by a given scan-converter. */
402
/* FT_OUTLINE_SINGLE_PASS :: This flag is set to force a given */
403
/* scan-converter to only use a single */
404
/* pass over the outline to render a */
405
/* bitmap glyph image. Normally, it is */
406
/* set for very large character sizes. */
407
/* It is only a hint, that might be */
408
/* completely ignored by a given */
409
/* scan-converter. */
363
/* FT_OUTLINE_NONE :: */
364
/* Value~0 is reserved. */
366
/* FT_OUTLINE_OWNER :: */
367
/* If set, this flag indicates that the outline's field arrays */
368
/* (i.e., `points', `flags', and `contours') are `owned' by the */
369
/* outline object, and should thus be freed when it is destroyed. */
371
/* FT_OUTLINE_EVEN_ODD_FILL :: */
372
/* By default, outlines are filled using the non-zero winding rule. */
373
/* If set to 1, the outline will be filled using the even-odd fill */
374
/* rule (only works with the smooth raster). */
376
/* FT_OUTLINE_REVERSE_FILL :: */
377
/* By default, outside contours of an outline are oriented in */
378
/* clock-wise direction, as defined in the TrueType specification. */
379
/* This flag is set if the outline uses the opposite direction */
380
/* (typically for Type~1 fonts). This flag is ignored by the scan */
383
/* FT_OUTLINE_IGNORE_DROPOUTS :: */
384
/* By default, the scan converter will try to detect drop-outs in */
385
/* an outline and correct the glyph bitmap to ensure consistent */
386
/* shape continuity. If set, this flag hints the scan-line */
387
/* converter to ignore such cases. */
389
/* FT_OUTLINE_SMART_DROPOUTS :: */
390
/* Select smart dropout control. If unset, use simple dropout */
391
/* control. Ignored if @FT_OUTLINE_IGNORE_DROPOUTS is set. */
393
/* FT_OUTLINE_INCLUDE_STUBS :: */
394
/* If set, turn pixels on for `stubs', otherwise exclude them. */
395
/* Ignored if @FT_OUTLINE_IGNORE_DROPOUTS is set. */
397
/* FT_OUTLINE_HIGH_PRECISION :: */
398
/* This flag indicates that the scan-line converter should try to */
399
/* convert this outline to bitmaps with the highest possible */
400
/* quality. It is typically set for small character sizes. Note */
401
/* that this is only a hint that might be completely ignored by a */
402
/* given scan-converter. */
404
/* FT_OUTLINE_SINGLE_PASS :: */
405
/* This flag is set to force a given scan-converter to only use a */
406
/* single pass over the outline to render a bitmap glyph image. */
407
/* Normally, it is set for very large character sizes. It is only */
408
/* a hint that might be completely ignored by a given */
409
/* scan-converter. */
412
/* Please refer to the description of the `SCANTYPE' instruction in */
413
/* the OpenType specification (in file `ttinst1.doc') how simple */
414
/* drop-outs, smart drop-outs, and stubs are defined. */
411
416
#define FT_OUTLINE_NONE 0x0
412
417
#define FT_OUTLINE_OWNER 0x1
413
418
#define FT_OUTLINE_EVEN_ODD_FILL 0x2
414
419
#define FT_OUTLINE_REVERSE_FILL 0x4
415
420
#define FT_OUTLINE_IGNORE_DROPOUTS 0x8
421
#define FT_OUTLINE_SMART_DROPOUTS 0x10
422
#define FT_OUTLINE_INCLUDE_STUBS 0x20
417
424
#define FT_OUTLINE_HIGH_PRECISION 0x100
418
425
#define FT_OUTLINE_SINGLE_PASS 0x200