cairo 1.14.0-x86-mingw32 → 1.14.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of cairo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/NEWS +12 -0
- data/Rakefile +14 -4
- data/ext/cairo/rb_cairo.h +1 -1
- data/lib/2.0/cairo.so +0 -0
- data/lib/2.1/cairo.so +0 -0
- data/lib/2.2/cairo.so +0 -0
- data/vendor/local/bin/fc-cache.exe +0 -0
- data/vendor/local/bin/fc-cat.exe +0 -0
- data/vendor/local/bin/fc-list.exe +0 -0
- data/vendor/local/bin/fc-match.exe +0 -0
- data/vendor/local/bin/fc-pattern.exe +0 -0
- data/vendor/local/bin/fc-query.exe +0 -0
- data/vendor/local/bin/fc-scan.exe +0 -0
- data/vendor/local/bin/fc-validate.exe +0 -0
- data/vendor/local/bin/freetype-config +2 -2
- data/vendor/local/bin/libcairo-2.dll +0 -0
- data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
- data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
- data/vendor/local/bin/libfontconfig-1.dll +0 -0
- data/vendor/local/bin/libfreetype-6.dll +0 -0
- data/vendor/local/bin/libpixman-1-0.dll +0 -0
- data/vendor/local/bin/libpng-config +1 -1
- data/vendor/local/bin/libpng16-16.dll +0 -0
- data/vendor/local/bin/libpng16-config +1 -1
- data/vendor/local/bin/libxml2-2.dll +0 -0
- data/vendor/local/bin/png-fix-itxt.exe +0 -0
- data/vendor/local/bin/pngfix.exe +0 -0
- data/vendor/local/bin/xmlcatalog.exe +0 -0
- data/vendor/local/bin/xmllint.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/include/freetype2/config/ftconfig.h +12 -237
- data/vendor/local/include/freetype2/config/ftoption.h +59 -6
- data/vendor/local/include/freetype2/freetype.h +112 -140
- data/vendor/local/include/freetype2/ftadvanc.h +7 -2
- data/vendor/local/include/freetype2/ftautoh.h +11 -11
- data/vendor/local/include/freetype2/ftbbox.h +0 -1
- data/vendor/local/include/freetype2/ftbdf.h +2 -2
- data/vendor/local/include/freetype2/ftbitmap.h +7 -2
- data/vendor/local/include/freetype2/ftbzip2.h +1 -1
- data/vendor/local/include/freetype2/ftcache.h +4 -4
- data/vendor/local/include/freetype2/ftcffdrv.h +13 -5
- data/vendor/local/include/freetype2/ftcid.h +2 -1
- data/vendor/local/include/freetype2/fterrdef.h +91 -91
- data/vendor/local/include/freetype2/ftgasp.h +2 -1
- data/vendor/local/include/freetype2/ftglyph.h +3 -18
- data/vendor/local/include/freetype2/ftgxval.h +12 -13
- data/vendor/local/include/freetype2/ftgzip.h +1 -2
- data/vendor/local/include/freetype2/ftimage.h +51 -153
- data/vendor/local/include/freetype2/ftincrem.h +3 -2
- data/vendor/local/include/freetype2/ftlist.h +2 -3
- data/vendor/local/include/freetype2/ftlzw.h +1 -1
- data/vendor/local/include/freetype2/ftmm.h +0 -4
- data/vendor/local/include/freetype2/ftmodapi.h +28 -2
- data/vendor/local/include/freetype2/ftotval.h +8 -7
- data/vendor/local/include/freetype2/ftoutln.h +10 -8
- data/vendor/local/include/freetype2/ftpfr.h +1 -1
- data/vendor/local/include/freetype2/ftrender.h +0 -1
- data/vendor/local/include/freetype2/ftstroke.h +39 -5
- data/vendor/local/include/freetype2/ftsynth.h +1 -0
- data/vendor/local/include/freetype2/ftsystem.h +0 -1
- data/vendor/local/include/freetype2/fttrigon.h +2 -2
- data/vendor/local/include/freetype2/ftttdrv.h +1 -1
- data/vendor/local/include/freetype2/fttypes.h +6 -2
- data/vendor/local/include/freetype2/ftwinfnt.h +1 -1
- data/vendor/local/include/freetype2/ftxf86.h +2 -1
- data/vendor/local/include/freetype2/t1tables.h +109 -11
- data/vendor/local/include/freetype2/tttables.h +53 -11
- data/vendor/local/include/freetype2/ttunpat.h +2 -1
- data/vendor/local/include/libpng16/png.h +33 -27
- data/vendor/local/include/libpng16/pngconf.h +1 -1
- data/vendor/local/include/libpng16/pnglibconf.h +1 -1
- data/vendor/local/include/png.h +33 -27
- data/vendor/local/include/pngconf.h +1 -1
- data/vendor/local/include/pnglibconf.h +1 -1
- data/vendor/local/lib/libcairo-gobject.a +0 -0
- data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
- data/vendor/local/lib/libcairo.a +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/libfontconfig.dll.a +0 -0
- data/vendor/local/lib/libfreetype.a +0 -0
- data/vendor/local/lib/libfreetype.dll.a +0 -0
- data/vendor/local/lib/libfreetype.la +1 -1
- data/vendor/local/lib/libpixman-1.a +0 -0
- data/vendor/local/lib/libpixman-1.dll.a +0 -0
- data/vendor/local/lib/libpng.a +0 -0
- data/vendor/local/lib/libpng.dll.a +0 -0
- data/vendor/local/lib/libpng.la +2 -2
- data/vendor/local/lib/libpng16.a +0 -0
- data/vendor/local/lib/libpng16.dll.a +0 -0
- data/vendor/local/lib/libpng16.la +2 -2
- data/vendor/local/lib/libxml2.a +0 -0
- data/vendor/local/lib/libxml2.dll.a +0 -0
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/freetype2.pc +5 -5
- data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
- data/vendor/local/share/aclocal/freetype2.m4 +3 -3
- data/vendor/local/share/license/freetype/README +10 -10
- data/vendor/local/share/license/libpng/README +1 -1
- data/vendor/local/share/man/man1/freetype-config.1 +1 -1
- data/vendor/local/share/man/man3/libpng.3 +21 -18
- data/vendor/local/share/man/man3/libpngpf.3 +2 -2
- data/vendor/local/share/man/man5/png.5 +1 -1
- metadata +2 -2
@@ -4,7 +4,7 @@
|
|
4
4
|
/* */
|
5
5
|
/* FreeType convenience functions to handle glyphs (specification). */
|
6
6
|
/* */
|
7
|
-
/* Copyright 1996-2003, 2006, 2008, 2009, 2011, 2013 by
|
7
|
+
/* Copyright 1996-2003, 2006, 2008, 2009, 2011, 2013, 2014 by */
|
8
8
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
9
9
|
/* */
|
10
10
|
/* This file is part of the FreeType project, and may only be used, */
|
@@ -325,22 +325,8 @@ FT_BEGIN_HEADER
|
|
325
325
|
} FT_Glyph_BBox_Mode;
|
326
326
|
|
327
327
|
|
328
|
-
|
329
|
-
/*
|
330
|
-
/* <Enum> */
|
331
|
-
/* ft_glyph_bbox_xxx */
|
332
|
-
/* */
|
333
|
-
/* <Description> */
|
334
|
-
/* These constants are deprecated. Use the corresponding */
|
335
|
-
/* @FT_Glyph_BBox_Mode values instead. */
|
336
|
-
/* */
|
337
|
-
/* <Values> */
|
338
|
-
/* ft_glyph_bbox_unscaled :: See @FT_GLYPH_BBOX_UNSCALED. */
|
339
|
-
/* ft_glyph_bbox_subpixels :: See @FT_GLYPH_BBOX_SUBPIXELS. */
|
340
|
-
/* ft_glyph_bbox_gridfit :: See @FT_GLYPH_BBOX_GRIDFIT. */
|
341
|
-
/* ft_glyph_bbox_truncate :: See @FT_GLYPH_BBOX_TRUNCATE. */
|
342
|
-
/* ft_glyph_bbox_pixels :: See @FT_GLYPH_BBOX_PIXELS. */
|
343
|
-
/* */
|
328
|
+
/* these constants are deprecated; use the corresponding */
|
329
|
+
/* `FT_Glyph_BBox_Mode' values instead */
|
344
330
|
#define ft_glyph_bbox_unscaled FT_GLYPH_BBOX_UNSCALED
|
345
331
|
#define ft_glyph_bbox_subpixels FT_GLYPH_BBOX_SUBPIXELS
|
346
332
|
#define ft_glyph_bbox_gridfit FT_GLYPH_BBOX_GRIDFIT
|
@@ -603,7 +589,6 @@ FT_BEGIN_HEADER
|
|
603
589
|
FT_EXPORT( FT_Error )
|
604
590
|
FT_Matrix_Invert( FT_Matrix* matrix );
|
605
591
|
|
606
|
-
|
607
592
|
/* */
|
608
593
|
|
609
594
|
|
@@ -57,9 +57,19 @@ FT_BEGIN_HEADER
|
|
57
57
|
/* some TrueTypeGX tables (feat, mort, morx, bsln, just, kern, opbd, */
|
58
58
|
/* trak, prop, lcar). */
|
59
59
|
/* */
|
60
|
+
/* <Order> */
|
61
|
+
/* FT_TrueTypeGX_Validate */
|
62
|
+
/* FT_TrueTypeGX_Free */
|
63
|
+
/* */
|
64
|
+
/* FT_ClassicKern_Validate */
|
65
|
+
/* FT_ClassicKern_Free */
|
66
|
+
/* */
|
67
|
+
/* FT_VALIDATE_GX_LENGTH */
|
68
|
+
/* FT_VALIDATE_GXXXX */
|
69
|
+
/* FT_VALIDATE_CKERNXXX */
|
70
|
+
/* */
|
60
71
|
/*************************************************************************/
|
61
72
|
|
62
|
-
|
63
73
|
/*************************************************************************/
|
64
74
|
/* */
|
65
75
|
/* */
|
@@ -171,8 +181,6 @@ FT_BEGIN_HEADER
|
|
171
181
|
FT_VALIDATE_lcar )
|
172
182
|
|
173
183
|
|
174
|
-
/* */
|
175
|
-
|
176
184
|
/**********************************************************************
|
177
185
|
*
|
178
186
|
* @function:
|
@@ -221,8 +229,6 @@ FT_BEGIN_HEADER
|
|
221
229
|
FT_UInt table_length );
|
222
230
|
|
223
231
|
|
224
|
-
/* */
|
225
|
-
|
226
232
|
/**********************************************************************
|
227
233
|
*
|
228
234
|
* @function:
|
@@ -248,8 +254,6 @@ FT_BEGIN_HEADER
|
|
248
254
|
FT_Bytes table );
|
249
255
|
|
250
256
|
|
251
|
-
/* */
|
252
|
-
|
253
257
|
/**********************************************************************
|
254
258
|
*
|
255
259
|
* @enum:
|
@@ -277,8 +281,6 @@ FT_BEGIN_HEADER
|
|
277
281
|
#define FT_VALIDATE_CKERN ( FT_VALIDATE_MS | FT_VALIDATE_APPLE )
|
278
282
|
|
279
283
|
|
280
|
-
/* */
|
281
|
-
|
282
284
|
/**********************************************************************
|
283
285
|
*
|
284
286
|
* @function:
|
@@ -320,8 +322,6 @@ FT_BEGIN_HEADER
|
|
320
322
|
FT_Bytes *ckern_table );
|
321
323
|
|
322
324
|
|
323
|
-
/* */
|
324
|
-
|
325
325
|
/**********************************************************************
|
326
326
|
*
|
327
327
|
* @function:
|
@@ -346,8 +346,7 @@ FT_BEGIN_HEADER
|
|
346
346
|
FT_ClassicKern_Free( FT_Face face,
|
347
347
|
FT_Bytes table );
|
348
348
|
|
349
|
-
|
350
|
-
/* */
|
349
|
+
/* */
|
351
350
|
|
352
351
|
|
353
352
|
FT_END_HEADER
|
@@ -5,7 +5,7 @@
|
|
5
5
|
/* FreeType glyph image formats and default raster interface */
|
6
6
|
/* (specification). */
|
7
7
|
/* */
|
8
|
-
/* Copyright 1996-2010, 2013 by
|
8
|
+
/* Copyright 1996-2010, 2013, 2014 by */
|
9
9
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
10
10
|
/* */
|
11
11
|
/* This file is part of the FreeType project, and may only be used, */
|
@@ -193,67 +193,14 @@ FT_BEGIN_HEADER
|
|
193
193
|
} FT_Pixel_Mode;
|
194
194
|
|
195
195
|
|
196
|
-
|
197
|
-
/*
|
198
|
-
/* <Enum> */
|
199
|
-
/* ft_pixel_mode_xxx */
|
200
|
-
/* */
|
201
|
-
/* <Description> */
|
202
|
-
/* A list of deprecated constants. Use the corresponding */
|
203
|
-
/* @FT_Pixel_Mode values instead. */
|
204
|
-
/* */
|
205
|
-
/* <Values> */
|
206
|
-
/* ft_pixel_mode_none :: See @FT_PIXEL_MODE_NONE. */
|
207
|
-
/* ft_pixel_mode_mono :: See @FT_PIXEL_MODE_MONO. */
|
208
|
-
/* ft_pixel_mode_grays :: See @FT_PIXEL_MODE_GRAY. */
|
209
|
-
/* ft_pixel_mode_pal2 :: See @FT_PIXEL_MODE_GRAY2. */
|
210
|
-
/* ft_pixel_mode_pal4 :: See @FT_PIXEL_MODE_GRAY4. */
|
211
|
-
/* */
|
196
|
+
/* these constants are deprecated; use the corresponding `FT_Pixel_Mode' */
|
197
|
+
/* values instead. */
|
212
198
|
#define ft_pixel_mode_none FT_PIXEL_MODE_NONE
|
213
199
|
#define ft_pixel_mode_mono FT_PIXEL_MODE_MONO
|
214
200
|
#define ft_pixel_mode_grays FT_PIXEL_MODE_GRAY
|
215
201
|
#define ft_pixel_mode_pal2 FT_PIXEL_MODE_GRAY2
|
216
202
|
#define ft_pixel_mode_pal4 FT_PIXEL_MODE_GRAY4
|
217
203
|
|
218
|
-
/* */
|
219
|
-
|
220
|
-
#if 0
|
221
|
-
|
222
|
-
/*************************************************************************/
|
223
|
-
/* */
|
224
|
-
/* <Enum> */
|
225
|
-
/* FT_Palette_Mode */
|
226
|
-
/* */
|
227
|
-
/* <Description> */
|
228
|
-
/* THIS TYPE IS DEPRECATED. DO NOT USE IT! */
|
229
|
-
/* */
|
230
|
-
/* An enumeration type to describe the format of a bitmap palette, */
|
231
|
-
/* used with ft_pixel_mode_pal4 and ft_pixel_mode_pal8. */
|
232
|
-
/* */
|
233
|
-
/* <Values> */
|
234
|
-
/* ft_palette_mode_rgb :: The palette is an array of 3-byte RGB */
|
235
|
-
/* records. */
|
236
|
-
/* */
|
237
|
-
/* ft_palette_mode_rgba :: The palette is an array of 4-byte RGBA */
|
238
|
-
/* records. */
|
239
|
-
/* */
|
240
|
-
/* <Note> */
|
241
|
-
/* As ft_pixel_mode_pal2, pal4 and pal8 are currently unused by */
|
242
|
-
/* FreeType, these types are not handled by the library itself. */
|
243
|
-
/* */
|
244
|
-
typedef enum FT_Palette_Mode_
|
245
|
-
{
|
246
|
-
ft_palette_mode_rgb = 0,
|
247
|
-
ft_palette_mode_rgba,
|
248
|
-
|
249
|
-
ft_palette_mode_max /* do not remove */
|
250
|
-
|
251
|
-
} FT_Palette_Mode;
|
252
|
-
|
253
|
-
/* */
|
254
|
-
|
255
|
-
#endif
|
256
|
-
|
257
204
|
|
258
205
|
/*************************************************************************/
|
259
206
|
/* */
|
@@ -318,13 +265,13 @@ FT_BEGIN_HEADER
|
|
318
265
|
/* */
|
319
266
|
typedef struct FT_Bitmap_
|
320
267
|
{
|
321
|
-
int
|
322
|
-
int
|
268
|
+
unsigned int rows;
|
269
|
+
unsigned int width;
|
323
270
|
int pitch;
|
324
271
|
unsigned char* buffer;
|
325
|
-
short
|
326
|
-
char
|
327
|
-
char
|
272
|
+
unsigned short num_grays;
|
273
|
+
unsigned char pixel_mode;
|
274
|
+
unsigned char palette_mode;
|
328
275
|
void* palette;
|
329
276
|
|
330
277
|
} FT_Bitmap;
|
@@ -381,7 +328,7 @@ FT_BEGIN_HEADER
|
|
381
328
|
/* */
|
382
329
|
/* flags :: A set of bit flags used to characterize the outline */
|
383
330
|
/* and give hints to the scan-converter and hinter on */
|
384
|
-
/* how to convert/grid-fit it. See @
|
331
|
+
/* how to convert/grid-fit it. See @FT_OUTLINE_XXX. */
|
385
332
|
/* */
|
386
333
|
/* <Note> */
|
387
334
|
/* The B/W rasterizer only checks bit~2 in the `tags' array for the */
|
@@ -402,6 +349,8 @@ FT_BEGIN_HEADER
|
|
402
349
|
|
403
350
|
} FT_Outline;
|
404
351
|
|
352
|
+
/* */
|
353
|
+
|
405
354
|
/* Following limits must be consistent with */
|
406
355
|
/* FT_Outline.{n_contours,n_points} */
|
407
356
|
#define FT_OUTLINE_CONTOURS_MAX SHRT_MAX
|
@@ -411,7 +360,7 @@ FT_BEGIN_HEADER
|
|
411
360
|
/*************************************************************************/
|
412
361
|
/* */
|
413
362
|
/* <Enum> */
|
414
|
-
/*
|
363
|
+
/* FT_OUTLINE_XXX */
|
415
364
|
/* */
|
416
365
|
/* <Description> */
|
417
366
|
/* A list of bit-field constants use for the flags in an outline's */
|
@@ -492,24 +441,8 @@ FT_BEGIN_HEADER
|
|
492
441
|
#define FT_OUTLINE_SINGLE_PASS 0x200
|
493
442
|
|
494
443
|
|
495
|
-
|
496
|
-
|
497
|
-
* @enum:
|
498
|
-
* ft_outline_flags
|
499
|
-
*
|
500
|
-
* @description:
|
501
|
-
* These constants are deprecated. Please use the corresponding
|
502
|
-
* @FT_OUTLINE_FLAGS values.
|
503
|
-
*
|
504
|
-
* @values:
|
505
|
-
* ft_outline_none :: See @FT_OUTLINE_NONE.
|
506
|
-
* ft_outline_owner :: See @FT_OUTLINE_OWNER.
|
507
|
-
* ft_outline_even_odd_fill :: See @FT_OUTLINE_EVEN_ODD_FILL.
|
508
|
-
* ft_outline_reverse_fill :: See @FT_OUTLINE_REVERSE_FILL.
|
509
|
-
* ft_outline_ignore_dropouts :: See @FT_OUTLINE_IGNORE_DROPOUTS.
|
510
|
-
* ft_outline_high_precision :: See @FT_OUTLINE_HIGH_PRECISION.
|
511
|
-
* ft_outline_single_pass :: See @FT_OUTLINE_SINGLE_PASS.
|
512
|
-
*/
|
444
|
+
/* these constants are deprecated; use the corresponding */
|
445
|
+
/* `FT_OUTLINE_XXX' values instead */
|
513
446
|
#define ft_outline_none FT_OUTLINE_NONE
|
514
447
|
#define ft_outline_owner FT_OUTLINE_OWNER
|
515
448
|
#define ft_outline_even_odd_fill FT_OUTLINE_EVEN_ODD_FILL
|
@@ -796,22 +729,8 @@ FT_BEGIN_HEADER
|
|
796
729
|
} FT_Glyph_Format;
|
797
730
|
|
798
731
|
|
799
|
-
|
800
|
-
/*
|
801
|
-
/* <Enum> */
|
802
|
-
/* ft_glyph_format_xxx */
|
803
|
-
/* */
|
804
|
-
/* <Description> */
|
805
|
-
/* A list of deprecated constants. Use the corresponding */
|
806
|
-
/* @FT_Glyph_Format values instead. */
|
807
|
-
/* */
|
808
|
-
/* <Values> */
|
809
|
-
/* ft_glyph_format_none :: See @FT_GLYPH_FORMAT_NONE. */
|
810
|
-
/* ft_glyph_format_composite :: See @FT_GLYPH_FORMAT_COMPOSITE. */
|
811
|
-
/* ft_glyph_format_bitmap :: See @FT_GLYPH_FORMAT_BITMAP. */
|
812
|
-
/* ft_glyph_format_outline :: See @FT_GLYPH_FORMAT_OUTLINE. */
|
813
|
-
/* ft_glyph_format_plotter :: See @FT_GLYPH_FORMAT_PLOTTER. */
|
814
|
-
/* */
|
732
|
+
/* these constants are deprecated; use the corresponding */
|
733
|
+
/* `FT_Glyph_Format' values instead. */
|
815
734
|
#define ft_glyph_format_none FT_GLYPH_FORMAT_NONE
|
816
735
|
#define ft_glyph_format_composite FT_GLYPH_FORMAT_COMPOSITE
|
817
736
|
#define ft_glyph_format_bitmap FT_GLYPH_FORMAT_BITMAP
|
@@ -856,6 +775,21 @@ FT_BEGIN_HEADER
|
|
856
775
|
/* <Description> */
|
857
776
|
/* This section contains technical definitions. */
|
858
777
|
/* */
|
778
|
+
/* <Order> */
|
779
|
+
/* FT_Raster */
|
780
|
+
/* FT_Span */
|
781
|
+
/* FT_SpanFunc */
|
782
|
+
/* */
|
783
|
+
/* FT_Raster_Params */
|
784
|
+
/* FT_RASTER_FLAG_XXX */
|
785
|
+
/* */
|
786
|
+
/* FT_Raster_NewFunc */
|
787
|
+
/* FT_Raster_DoneFunc */
|
788
|
+
/* FT_Raster_ResetFunc */
|
789
|
+
/* FT_Raster_SetModeFunc */
|
790
|
+
/* FT_Raster_RenderFunc */
|
791
|
+
/* FT_Raster_Funcs */
|
792
|
+
/* */
|
859
793
|
/*************************************************************************/
|
860
794
|
|
861
795
|
|
@@ -865,8 +799,8 @@ FT_BEGIN_HEADER
|
|
865
799
|
/* FT_Raster */
|
866
800
|
/* */
|
867
801
|
/* <Description> */
|
868
|
-
/*
|
869
|
-
/* independently to convert an outline into a bitmap or pixmap.
|
802
|
+
/* An opaque handle (pointer) to a raster object. Each object can be */
|
803
|
+
/* used independently to convert an outline into a bitmap or pixmap. */
|
870
804
|
/* */
|
871
805
|
typedef struct FT_RasterRec_* FT_Raster;
|
872
806
|
|
@@ -877,8 +811,8 @@ FT_BEGIN_HEADER
|
|
877
811
|
/* FT_Span */
|
878
812
|
/* */
|
879
813
|
/* <Description> */
|
880
|
-
/* A structure used to model a single span of gray
|
881
|
-
/*
|
814
|
+
/* A structure used to model a single span of gray pixels when */
|
815
|
+
/* rendering an anti-aliased bitmap. */
|
882
816
|
/* */
|
883
817
|
/* <Fields> */
|
884
818
|
/* x :: The span's horizontal start position. */
|
@@ -886,8 +820,7 @@ FT_BEGIN_HEADER
|
|
886
820
|
/* len :: The span's length in pixels. */
|
887
821
|
/* */
|
888
822
|
/* coverage :: The span color/coverage, ranging from 0 (background) */
|
889
|
-
/* to 255 (foreground).
|
890
|
-
/* rendering. */
|
823
|
+
/* to 255 (foreground). */
|
891
824
|
/* */
|
892
825
|
/* <Note> */
|
893
826
|
/* This structure is used by the span drawing callback type named */
|
@@ -957,22 +890,7 @@ FT_BEGIN_HEADER
|
|
957
890
|
/* FT_Raster_BitTest_Func */
|
958
891
|
/* */
|
959
892
|
/* <Description> */
|
960
|
-
/*
|
961
|
-
/* */
|
962
|
-
/* A function used as a call-back by the monochrome scan-converter */
|
963
|
-
/* to test whether a given target pixel is already set to the drawing */
|
964
|
-
/* `color'. These tests are crucial to implement drop-out control */
|
965
|
-
/* per-se the TrueType spec. */
|
966
|
-
/* */
|
967
|
-
/* <Input> */
|
968
|
-
/* y :: The pixel's y~coordinate. */
|
969
|
-
/* */
|
970
|
-
/* x :: The pixel's x~coordinate. */
|
971
|
-
/* */
|
972
|
-
/* user :: User-supplied data that is passed to the callback. */
|
973
|
-
/* */
|
974
|
-
/* <Return> */
|
975
|
-
/* 1~if the pixel is `set', 0~otherwise. */
|
893
|
+
/* Deprecated, unimplemented. */
|
976
894
|
/* */
|
977
895
|
typedef int
|
978
896
|
(*FT_Raster_BitTest_Func)( int y,
|
@@ -986,21 +904,7 @@ FT_BEGIN_HEADER
|
|
986
904
|
/* FT_Raster_BitSet_Func */
|
987
905
|
/* */
|
988
906
|
/* <Description> */
|
989
|
-
/*
|
990
|
-
/* */
|
991
|
-
/* A function used as a call-back by the monochrome scan-converter */
|
992
|
-
/* to set an individual target pixel. This is crucial to implement */
|
993
|
-
/* drop-out control according to the TrueType specification. */
|
994
|
-
/* */
|
995
|
-
/* <Input> */
|
996
|
-
/* y :: The pixel's y~coordinate. */
|
997
|
-
/* */
|
998
|
-
/* x :: The pixel's x~coordinate. */
|
999
|
-
/* */
|
1000
|
-
/* user :: User-supplied data that is passed to the callback. */
|
1001
|
-
/* */
|
1002
|
-
/* <Return> */
|
1003
|
-
/* 1~if the pixel is `set', 0~otherwise. */
|
907
|
+
/* Deprecated, unimplemented. */
|
1004
908
|
/* */
|
1005
909
|
typedef void
|
1006
910
|
(*FT_Raster_BitSet_Func)( int y,
|
@@ -1034,8 +938,8 @@ FT_BEGIN_HEADER
|
|
1034
938
|
/* pixmap's buffer _must_ be zeroed before */
|
1035
939
|
/* rendering. */
|
1036
940
|
/* */
|
1037
|
-
/*
|
1038
|
-
/*
|
941
|
+
/* Direct rendering is only possible with */
|
942
|
+
/* anti-aliased glyphs. */
|
1039
943
|
/* */
|
1040
944
|
/* FT_RASTER_FLAG_CLIP :: This flag is only used in direct */
|
1041
945
|
/* rendering mode. If set, the output will */
|
@@ -1053,7 +957,8 @@ FT_BEGIN_HEADER
|
|
1053
957
|
#define FT_RASTER_FLAG_DIRECT 0x2
|
1054
958
|
#define FT_RASTER_FLAG_CLIP 0x4
|
1055
959
|
|
1056
|
-
/* deprecated */
|
960
|
+
/* these constants are deprecated; use the corresponding */
|
961
|
+
/* `FT_RASTER_FLAG_XXX' values instead */
|
1057
962
|
#define ft_raster_flag_default FT_RASTER_FLAG_DEFAULT
|
1058
963
|
#define ft_raster_flag_aa FT_RASTER_FLAG_AA
|
1059
964
|
#define ft_raster_flag_direct FT_RASTER_FLAG_DIRECT
|
@@ -1079,11 +984,11 @@ FT_BEGIN_HEADER
|
|
1079
984
|
/* */
|
1080
985
|
/* gray_spans :: The gray span drawing callback. */
|
1081
986
|
/* */
|
1082
|
-
/* black_spans ::
|
987
|
+
/* black_spans :: Unused. */
|
1083
988
|
/* */
|
1084
|
-
/* bit_test ::
|
989
|
+
/* bit_test :: Unused. */
|
1085
990
|
/* */
|
1086
|
-
/* bit_set ::
|
991
|
+
/* bit_set :: Unused. */
|
1087
992
|
/* */
|
1088
993
|
/* user :: User-supplied data that is passed to each drawing */
|
1089
994
|
/* callback. */
|
@@ -1100,15 +1005,9 @@ FT_BEGIN_HEADER
|
|
1100
1005
|
/* */
|
1101
1006
|
/* If the @FT_RASTER_FLAG_DIRECT bit flag is set in `flags', the */
|
1102
1007
|
/* raster will call the `gray_spans' callback to draw gray pixel */
|
1103
|
-
/* spans
|
1104
|
-
/*
|
1105
|
-
/*
|
1106
|
-
/* pre-existing bitmap through user-provided callbacks to perform the */
|
1107
|
-
/* span drawing/composition. */
|
1108
|
-
/* */
|
1109
|
-
/* Note that the `bit_test' and `bit_set' callbacks are required when */
|
1110
|
-
/* rendering a monochrome bitmap, as they are crucial to implement */
|
1111
|
-
/* correct drop-out control as defined in the TrueType specification. */
|
1008
|
+
/* spans. This allows direct composition over a pre-existing bitmap */
|
1009
|
+
/* through user-provided callbacks to perform the span drawing and */
|
1010
|
+
/* composition. Not supported by the monochrome rasterizer. */
|
1112
1011
|
/* */
|
1113
1012
|
typedef struct FT_Raster_Params_
|
1114
1013
|
{
|
@@ -1116,9 +1015,9 @@ FT_BEGIN_HEADER
|
|
1116
1015
|
const void* source;
|
1117
1016
|
int flags;
|
1118
1017
|
FT_SpanFunc gray_spans;
|
1119
|
-
FT_SpanFunc black_spans; /*
|
1120
|
-
FT_Raster_BitTest_Func bit_test; /*
|
1121
|
-
FT_Raster_BitSet_Func bit_set; /*
|
1018
|
+
FT_SpanFunc black_spans; /* unused */
|
1019
|
+
FT_Raster_BitTest_Func bit_test; /* unused */
|
1020
|
+
FT_Raster_BitSet_Func bit_set; /* unused */
|
1122
1021
|
void* user;
|
1123
1022
|
FT_BBox clip_box;
|
1124
1023
|
|
@@ -1305,7 +1204,6 @@ FT_BEGIN_HEADER
|
|
1305
1204
|
|
1306
1205
|
} FT_Raster_Funcs;
|
1307
1206
|
|
1308
|
-
|
1309
1207
|
/* */
|
1310
1208
|
|
1311
1209
|
|