cairo 1.15.13-x64-mingw32 → 1.15.14-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS +24 -0
- data/README.rdoc +11 -40
- data/Rakefile +4 -2
- data/ext/cairo/rb_cairo.h +1 -1
- data/ext/cairo/rb_cairo_context.c +35 -3
- data/ext/cairo/rb_cairo_font_options.c +5 -6
- data/ext/cairo/rb_cairo_private.h +2 -2
- data/ext/cairo/rb_cairo_scaled_font.c +11 -2
- data/ext/cairo/rb_cairo_surface.c +89 -48
- data/lib/2.2/cairo.so +0 -0
- data/lib/2.3/cairo.so +0 -0
- data/lib/2.4/cairo.so +0 -0
- data/lib/2.5/cairo.so +0 -0
- data/test/{cairo-test-utils.rb → helper.rb} +4 -5
- data/test/run-test.rb +3 -10
- data/test/test_context.rb +6 -6
- data/test/test_font_extents.rb +1 -1
- data/test/test_font_face.rb +1 -1
- data/test/test_font_options.rb +1 -1
- data/test/test_image_surface.rb +2 -2
- data/test/test_pdf_surface.rb +1 -1
- data/test/test_quartz_image_surface.rb +1 -1
- data/test/test_raster_source_pattern.rb +13 -13
- data/test/test_recording_surface.rb +2 -2
- data/test/test_region.rb +1 -1
- data/test/test_scaled_font.rb +1 -1
- data/test/test_script_device.rb +1 -1
- data/test/test_script_surface.rb +1 -1
- data/test/test_surface.rb +5 -5
- data/test/test_svg_surface.rb +1 -1
- data/test/test_tee_surface.rb +2 -2
- data/test/test_text_cluster.rb +1 -1
- data/test/test_text_extents.rb +1 -1
- data/test/test_text_to_glyphs_data.rb +1 -1
- data/test/test_xml_device.rb +1 -1
- data/test/test_xml_surface.rb +2 -2
- data/vendor/local/bin/fc-cache.exe +0 -0
- data/vendor/local/bin/fc-cat.exe +0 -0
- data/vendor/local/bin/fc-conflist.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/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/zlib1211.dll +0 -0
- data/vendor/local/include/freetype2/freetype/config/ftconfig.h +82 -3
- data/vendor/local/include/freetype2/freetype/config/ftheader.h +43 -85
- data/vendor/local/include/freetype2/freetype/config/ftoption.h +43 -56
- data/vendor/local/include/freetype2/freetype/config/ftstdlib.h +1 -1
- data/vendor/local/include/freetype2/freetype/freetype.h +185 -85
- data/vendor/local/include/freetype2/freetype/ftadvanc.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftbbox.h +2 -2
- data/vendor/local/include/freetype2/freetype/ftbdf.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftbitmap.h +2 -2
- data/vendor/local/include/freetype2/freetype/ftbzip2.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftcache.h +1 -16
- data/vendor/local/include/freetype2/freetype/ftchapters.h +3 -0
- data/vendor/local/include/freetype2/freetype/ftcid.h +2 -2
- data/vendor/local/include/freetype2/freetype/ftdriver.h +1225 -0
- data/vendor/local/include/freetype2/freetype/fterrdef.h +1 -1
- data/vendor/local/include/freetype2/freetype/fterrors.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftfntfmt.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftgasp.h +6 -1
- data/vendor/local/include/freetype2/freetype/ftglyph.h +3 -3
- data/vendor/local/include/freetype2/freetype/ftgxval.h +5 -5
- data/vendor/local/include/freetype2/freetype/ftgzip.h +4 -1
- data/vendor/local/include/freetype2/freetype/ftimage.h +18 -18
- data/vendor/local/include/freetype2/freetype/ftincrem.h +2 -13
- data/vendor/local/include/freetype2/freetype/ftlcdfil.h +5 -18
- data/vendor/local/include/freetype2/freetype/ftlist.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftlzw.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftmac.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftmm.h +99 -11
- data/vendor/local/include/freetype2/freetype/ftmodapi.h +12 -11
- data/vendor/local/include/freetype2/freetype/ftmoderr.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftotval.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftoutln.h +4 -7
- data/vendor/local/include/freetype2/freetype/ftparams.h +205 -0
- data/vendor/local/include/freetype2/freetype/ftpfr.h +4 -4
- data/vendor/local/include/freetype2/freetype/ftrender.h +2 -2
- data/vendor/local/include/freetype2/freetype/ftsizes.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftsnames.h +8 -42
- data/vendor/local/include/freetype2/freetype/ftstroke.h +6 -6
- data/vendor/local/include/freetype2/freetype/ftsynth.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftsystem.h +1 -1
- data/vendor/local/include/freetype2/freetype/fttrigon.h +1 -1
- data/vendor/local/include/freetype2/freetype/fttypes.h +2 -2
- data/vendor/local/include/freetype2/freetype/ftwinfnt.h +2 -2
- data/vendor/local/include/freetype2/freetype/t1tables.h +10 -1
- data/vendor/local/include/freetype2/freetype/ttnameid.h +2 -2
- data/vendor/local/include/freetype2/freetype/tttables.h +1 -1
- data/vendor/local/include/freetype2/freetype/tttags.h +1 -1
- data/vendor/local/include/freetype2/ft2build.h +1 -1
- data/vendor/local/include/libpng16/png.h +40 -40
- data/vendor/local/include/libpng16/pngconf.h +15 -14
- data/vendor/local/include/libpng16/pnglibconf.h +1 -1
- data/vendor/local/include/png.h +40 -40
- data/vendor/local/include/pngconf.h +15 -14
- data/vendor/local/include/pnglibconf.h +1 -1
- data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
- data/vendor/local/lib/libcairo-gobject.la +1 -1
- 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 +3 -3
- 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.dll.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/freetype2.pc +2 -2
- 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 +1 -1
- data/vendor/local/share/license/freetype/README +9 -9
- data/vendor/local/share/license/freetype/README.git +1 -1
- data/vendor/local/share/license/libpng/README +2 -2
- data/vendor/local/share/man/man3/libpng.3 +50 -54
- data/vendor/local/share/man/man3/libpngpf.3 +8 -4
- metadata +9 -14
- data/vendor/local/bin/freetype-config +0 -211
- data/vendor/local/include/freetype2/freetype/ftautoh.h +0 -533
- data/vendor/local/include/freetype2/freetype/ftcffdrv.h +0 -321
- data/vendor/local/include/freetype2/freetype/ftpcfdrv.h +0 -105
- data/vendor/local/include/freetype2/freetype/ftttdrv.h +0 -328
- data/vendor/local/include/freetype2/freetype/ttunpat.h +0 -63
- data/vendor/local/share/man/man1/freetype-config.1 +0 -146
@@ -4,7 +4,7 @@
|
|
4
4
|
/* */
|
5
5
|
/* FreeType error code handling (specification). */
|
6
6
|
/* */
|
7
|
-
/* Copyright 1996-
|
7
|
+
/* Copyright 1996-2018 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, */
|
@@ -4,7 +4,7 @@
|
|
4
4
|
/* */
|
5
5
|
/* Access of TrueType's `gasp' table (specification). */
|
6
6
|
/* */
|
7
|
-
/* Copyright 2007-
|
7
|
+
/* Copyright 2007-2018 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, */
|
@@ -29,6 +29,9 @@
|
|
29
29
|
#endif
|
30
30
|
|
31
31
|
|
32
|
+
FT_BEGIN_HEADER
|
33
|
+
|
34
|
+
|
32
35
|
/***************************************************************************
|
33
36
|
*
|
34
37
|
* @section:
|
@@ -131,6 +134,8 @@
|
|
131
134
|
/* */
|
132
135
|
|
133
136
|
|
137
|
+
FT_END_HEADER
|
138
|
+
|
134
139
|
#endif /* FTGASP_H_ */
|
135
140
|
|
136
141
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
/* */
|
5
5
|
/* FreeType convenience functions to handle glyphs (specification). */
|
6
6
|
/* */
|
7
|
-
/* Copyright 1996-
|
7
|
+
/* Copyright 1996-2018 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, */
|
@@ -347,10 +347,10 @@ FT_BEGIN_HEADER
|
|
347
347
|
/* */
|
348
348
|
/* <Description> */
|
349
349
|
/* Return a glyph's `control box'. The control box encloses all the */
|
350
|
-
/* outline's points, including
|
350
|
+
/* outline's points, including Bezier control points. Though it */
|
351
351
|
/* coincides with the exact bounding box for most glyphs, it can be */
|
352
352
|
/* slightly larger in some situations (like when rotating an outline */
|
353
|
-
/* that contains
|
353
|
+
/* that contains Bezier outside arcs). */
|
354
354
|
/* */
|
355
355
|
/* Computing the control box is very fast, while getting the bounding */
|
356
356
|
/* box can take much more time as it needs to walk over all segments */
|
@@ -4,7 +4,7 @@
|
|
4
4
|
/* */
|
5
5
|
/* FreeType API for validating TrueTypeGX/AAT tables (specification). */
|
6
6
|
/* */
|
7
|
-
/* Copyright 2004-
|
7
|
+
/* Copyright 2004-2018 by */
|
8
8
|
/* Masatake YAMATO, Redhat K.K, */
|
9
9
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
10
10
|
/* */
|
@@ -101,15 +101,15 @@ FT_BEGIN_HEADER
|
|
101
101
|
* The number of tables checked in this module. Use it as a parameter
|
102
102
|
* for the `table-length' argument of function @FT_TrueTypeGX_Validate.
|
103
103
|
*/
|
104
|
-
#define FT_VALIDATE_GX_LENGTH
|
104
|
+
#define FT_VALIDATE_GX_LENGTH ( FT_VALIDATE_GX_LAST_INDEX + 1 )
|
105
105
|
|
106
106
|
/* */
|
107
107
|
|
108
108
|
/* Up to 0x1000 is used by otvalid.
|
109
109
|
Ox2xxx is reserved for feature OT extension. */
|
110
|
-
#define FT_VALIDATE_GX_START
|
111
|
-
#define FT_VALIDATE_GX_BITFIELD( tag )
|
112
|
-
|
110
|
+
#define FT_VALIDATE_GX_START 0x4000
|
111
|
+
#define FT_VALIDATE_GX_BITFIELD( tag ) \
|
112
|
+
( FT_VALIDATE_GX_START << FT_VALIDATE_##tag##_INDEX )
|
113
113
|
|
114
114
|
|
115
115
|
/**********************************************************************
|
@@ -4,7 +4,7 @@
|
|
4
4
|
/* */
|
5
5
|
/* Gzip-compressed stream support. */
|
6
6
|
/* */
|
7
|
-
/* Copyright 2002-
|
7
|
+
/* Copyright 2002-2018 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, */
|
@@ -129,6 +129,9 @@ FT_BEGIN_HEADER
|
|
129
129
|
* @note:
|
130
130
|
* This function may return `FT_Err_Unimplemented_Feature' if your build
|
131
131
|
* of FreeType was not compiled with zlib support.
|
132
|
+
*
|
133
|
+
* @since:
|
134
|
+
* 2.5.1
|
132
135
|
*/
|
133
136
|
FT_EXPORT( FT_Error )
|
134
137
|
FT_Gzip_Uncompress( FT_Memory memory,
|
@@ -5,7 +5,7 @@
|
|
5
5
|
/* FreeType glyph image formats and default raster interface */
|
6
6
|
/* (specification). */
|
7
7
|
/* */
|
8
|
-
/* Copyright 1996-
|
8
|
+
/* Copyright 1996-2018 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, */
|
@@ -169,13 +169,13 @@ FT_BEGIN_HEADER
|
|
169
169
|
/* @FT_RENDER_MODE_LCD_V. */
|
170
170
|
/* */
|
171
171
|
/* FT_PIXEL_MODE_BGRA :: */
|
172
|
-
/* An image with four 8-bit channels per pixel,
|
173
|
-
/* color image (such as emoticons) with alpha
|
174
|
-
/* pixel, the format is BGRA, which means, the
|
175
|
-
/* first in memory. The color channels are
|
176
|
-
/* the sRGB colorspace. For example, full
|
177
|
-
/* opacity will be represented as
|
178
|
-
/* See also @FT_LOAD_COLOR.
|
172
|
+
/* [Since 2.5] An image with four 8-bit channels per pixel, */
|
173
|
+
/* representing a color image (such as emoticons) with alpha */
|
174
|
+
/* channel. For each pixel, the format is BGRA, which means, the */
|
175
|
+
/* blue channel comes first in memory. The color channels are */
|
176
|
+
/* pre-multiplied and in the sRGB colorspace. For example, full */
|
177
|
+
/* red at half-translucent opacity will be represented as */
|
178
|
+
/* `00,00,80,80', not `00,00,FF,80'. See also @FT_LOAD_COLOR. */
|
179
179
|
/* */
|
180
180
|
typedef enum FT_Pixel_Mode_
|
181
181
|
{
|
@@ -301,11 +301,11 @@ FT_BEGIN_HEADER
|
|
301
301
|
/* each outline point's type. */
|
302
302
|
/* */
|
303
303
|
/* If bit~0 is unset, the point is `off' the curve, */
|
304
|
-
/* i.e., a
|
304
|
+
/* i.e., a Bezier control point, while it is `on' if */
|
305
305
|
/* set. */
|
306
306
|
/* */
|
307
307
|
/* Bit~1 is meaningful for `off' points only. If set, */
|
308
|
-
/* it indicates a third-order
|
308
|
+
/* it indicates a third-order Bezier arc control point; */
|
309
309
|
/* and a second-order control point if unset. */
|
310
310
|
/* */
|
311
311
|
/* If bit~2 is set, bits 5-7 contain the drop-out mode */
|
@@ -532,7 +532,7 @@ FT_BEGIN_HEADER
|
|
532
532
|
/* A function pointer type used to describe the signature of a `conic */
|
533
533
|
/* to' function during outline walking or decomposition. */
|
534
534
|
/* */
|
535
|
-
/* A `conic to' is emitted to indicate a second-order
|
535
|
+
/* A `conic to' is emitted to indicate a second-order Bezier arc in */
|
536
536
|
/* the outline. */
|
537
537
|
/* */
|
538
538
|
/* <Input> */
|
@@ -564,12 +564,12 @@ FT_BEGIN_HEADER
|
|
564
564
|
/* A function pointer type used to describe the signature of a `cubic */
|
565
565
|
/* to' function during outline walking or decomposition. */
|
566
566
|
/* */
|
567
|
-
/* A `cubic to' is emitted to indicate a third-order
|
567
|
+
/* A `cubic to' is emitted to indicate a third-order Bezier arc. */
|
568
568
|
/* */
|
569
569
|
/* <Input> */
|
570
|
-
/* control1 :: A pointer to the first
|
570
|
+
/* control1 :: A pointer to the first Bezier control point. */
|
571
571
|
/* */
|
572
|
-
/* control2 :: A pointer to the second
|
572
|
+
/* control2 :: A pointer to the second Bezier control point. */
|
573
573
|
/* */
|
574
574
|
/* to :: A pointer to the target end point. */
|
575
575
|
/* */
|
@@ -595,16 +595,16 @@ FT_BEGIN_HEADER
|
|
595
595
|
/* */
|
596
596
|
/* <Description> */
|
597
597
|
/* A structure to hold various function pointers used during outline */
|
598
|
-
/* decomposition in order to emit segments, conic, and cubic
|
598
|
+
/* decomposition in order to emit segments, conic, and cubic Beziers. */
|
599
599
|
/* */
|
600
600
|
/* <Fields> */
|
601
601
|
/* move_to :: The `move to' emitter. */
|
602
602
|
/* */
|
603
603
|
/* line_to :: The segment emitter. */
|
604
604
|
/* */
|
605
|
-
/* conic_to :: The second-order
|
605
|
+
/* conic_to :: The second-order Bezier arc emitter. */
|
606
606
|
/* */
|
607
|
-
/* cubic_to :: The third-order
|
607
|
+
/* cubic_to :: The third-order Bezier arc emitter. */
|
608
608
|
/* */
|
609
609
|
/* shift :: The shift that is applied to coordinates before they */
|
610
610
|
/* are sent to the emitter. */
|
@@ -701,7 +701,7 @@ FT_BEGIN_HEADER
|
|
701
701
|
/* */
|
702
702
|
/* FT_GLYPH_FORMAT_OUTLINE :: */
|
703
703
|
/* The glyph image is a vectorial outline made of line segments */
|
704
|
-
/* and
|
704
|
+
/* and Bezier arcs; it can be described as an @FT_Outline; you */
|
705
705
|
/* generally want to access the `outline' field of the */
|
706
706
|
/* @FT_GlyphSlotRec structure to read it. */
|
707
707
|
/* */
|
@@ -4,7 +4,7 @@
|
|
4
4
|
/* */
|
5
5
|
/* FreeType incremental loading (specification). */
|
6
6
|
/* */
|
7
|
-
/* Copyright 2002-
|
7
|
+
/* Copyright 2002-2018 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, */
|
@@ -21,6 +21,7 @@
|
|
21
21
|
|
22
22
|
#include <ft2build.h>
|
23
23
|
#include FT_FREETYPE_H
|
24
|
+
#include FT_PARAMETER_TAGS_H
|
24
25
|
|
25
26
|
#ifdef FREETYPE_H
|
26
27
|
#error "freetype.h of FreeType 1 has been loaded!"
|
@@ -331,18 +332,6 @@ FT_BEGIN_HEADER
|
|
331
332
|
typedef FT_Incremental_InterfaceRec* FT_Incremental_Interface;
|
332
333
|
|
333
334
|
|
334
|
-
/***************************************************************************
|
335
|
-
*
|
336
|
-
* @constant:
|
337
|
-
* FT_PARAM_TAG_INCREMENTAL
|
338
|
-
*
|
339
|
-
* @description:
|
340
|
-
* A constant used as the tag of @FT_Parameter structures to indicate
|
341
|
-
* an incremental loading object to be used by FreeType.
|
342
|
-
*
|
343
|
-
*/
|
344
|
-
#define FT_PARAM_TAG_INCREMENTAL FT_MAKE_TAG( 'i', 'n', 'c', 'r' )
|
345
|
-
|
346
335
|
/* */
|
347
336
|
|
348
337
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
/* FreeType API for color filtering of subpixel bitmap glyphs */
|
6
6
|
/* (specification). */
|
7
7
|
/* */
|
8
|
-
/* Copyright 2006-
|
8
|
+
/* Copyright 2006-2018 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, */
|
@@ -22,6 +22,7 @@
|
|
22
22
|
|
23
23
|
#include <ft2build.h>
|
24
24
|
#include FT_FREETYPE_H
|
25
|
+
#include FT_PARAMETER_TAGS_H
|
25
26
|
|
26
27
|
#ifdef FREETYPE_H
|
27
28
|
#error "freetype.h of FreeType 1 has been loaded!"
|
@@ -280,23 +281,6 @@ FT_BEGIN_HEADER
|
|
280
281
|
unsigned char *weights );
|
281
282
|
|
282
283
|
|
283
|
-
/**************************************************************************
|
284
|
-
*
|
285
|
-
* @constant:
|
286
|
-
* FT_PARAM_TAG_LCD_FILTER_WEIGHTS
|
287
|
-
*
|
288
|
-
* @description:
|
289
|
-
* An @FT_Parameter tag to be used with @FT_Face_Properties. The
|
290
|
-
* corresponding argument specifies the five LCD filter weights for a
|
291
|
-
* given face (if using @FT_LOAD_TARGET_LCD, for example), overriding
|
292
|
-
* the global default values or the values set up with
|
293
|
-
* @FT_Library_SetLcdFilterWeights.
|
294
|
-
*
|
295
|
-
*/
|
296
|
-
#define FT_PARAM_TAG_LCD_FILTER_WEIGHTS \
|
297
|
-
FT_MAKE_TAG( 'l', 'c', 'd', 'f' )
|
298
|
-
|
299
|
-
|
300
284
|
/*
|
301
285
|
* @type:
|
302
286
|
* FT_LcdFiveTapFilter
|
@@ -305,6 +289,9 @@ FT_BEGIN_HEADER
|
|
305
289
|
* A typedef for passing the five LCD filter weights to
|
306
290
|
* @FT_Face_Properties within an @FT_Parameter structure.
|
307
291
|
*
|
292
|
+
* @since:
|
293
|
+
* 2.8
|
294
|
+
*
|
308
295
|
*/
|
309
296
|
#define FT_LCD_FILTER_FIVE_TAPS 5
|
310
297
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
/* */
|
5
5
|
/* Generic list support for FreeType (specification). */
|
6
6
|
/* */
|
7
|
-
/* Copyright 1996-
|
7
|
+
/* Copyright 1996-2018 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, */
|
@@ -4,7 +4,7 @@
|
|
4
4
|
/* */
|
5
5
|
/* Additional Mac-specific API. */
|
6
6
|
/* */
|
7
|
-
/* Copyright 1996-
|
7
|
+
/* Copyright 1996-2018 by */
|
8
8
|
/* Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg. */
|
9
9
|
/* */
|
10
10
|
/* This file is part of the FreeType project, and may only be used, */
|
@@ -4,7 +4,7 @@
|
|
4
4
|
/* */
|
5
5
|
/* FreeType Multiple Master font interface (specification). */
|
6
6
|
/* */
|
7
|
-
/* Copyright 1996-
|
7
|
+
/* Copyright 1996-2018 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, */
|
@@ -286,7 +286,7 @@ FT_BEGIN_HEADER
|
|
286
286
|
/* <Output> */
|
287
287
|
/* amaster :: The variation descriptor. */
|
288
288
|
/* Allocates a data structure, which the user must */
|
289
|
-
/* deallocate with
|
289
|
+
/* deallocate with a call to @FT_Done_MM_Var after use. */
|
290
290
|
/* */
|
291
291
|
/* <Return> */
|
292
292
|
/* FreeType error code. 0~means success. */
|
@@ -296,6 +296,26 @@ FT_BEGIN_HEADER
|
|
296
296
|
FT_MM_Var* *amaster );
|
297
297
|
|
298
298
|
|
299
|
+
/*************************************************************************/
|
300
|
+
/* */
|
301
|
+
/* <Function> */
|
302
|
+
/* FT_Done_MM_Var */
|
303
|
+
/* */
|
304
|
+
/* <Description> */
|
305
|
+
/* Free the memory allocated by @FT_Get_MM_Var. */
|
306
|
+
/* */
|
307
|
+
/* <Input> */
|
308
|
+
/* library :: A handle of the face's parent library object that was */
|
309
|
+
/* used in the call to @FT_Get_MM_Var to create `amaster'. */
|
310
|
+
/* */
|
311
|
+
/* <Return> */
|
312
|
+
/* FreeType error code. 0~means success. */
|
313
|
+
/* */
|
314
|
+
FT_EXPORT( FT_Error )
|
315
|
+
FT_Done_MM_Var( FT_Library library,
|
316
|
+
FT_MM_Var *amaster );
|
317
|
+
|
318
|
+
|
299
319
|
/*************************************************************************/
|
300
320
|
/* */
|
301
321
|
/* <Function> */
|
@@ -323,9 +343,13 @@ FT_BEGIN_HEADER
|
|
323
343
|
/* FreeType error code. 0~means success. */
|
324
344
|
/* */
|
325
345
|
/* <Note> */
|
326
|
-
/* To reset all axes to the default values, call the
|
327
|
-
/* `num_coords' set to zero and `coords' set to NULL
|
328
|
-
/*
|
346
|
+
/* [Since 2.8.1] To reset all axes to the default values, call the */
|
347
|
+
/* function with `num_coords' set to zero and `coords' set to NULL. */
|
348
|
+
/* */
|
349
|
+
/* [Since 2.9] If `num_coords' is larger than zero, this function */
|
350
|
+
/* sets the @FT_FACE_FLAG_VARIATION bit in @FT_Face's `face_flags' */
|
351
|
+
/* field (i.e., @FT_IS_VARIATION will return true). If `num_coords' */
|
352
|
+
/* is zero, this bit flag gets unset. */
|
329
353
|
/* */
|
330
354
|
FT_EXPORT( FT_Error )
|
331
355
|
FT_Set_MM_Design_Coordinates( FT_Face face,
|
@@ -358,9 +382,15 @@ FT_BEGIN_HEADER
|
|
358
382
|
/* FreeType error code. 0~means success. */
|
359
383
|
/* */
|
360
384
|
/* <Note> */
|
361
|
-
/* To reset all axes to the default values, call the
|
362
|
-
/* `num_coords' set to zero and `coords' set to NULL
|
363
|
-
/*
|
385
|
+
/* [Since 2.8.1] To reset all axes to the default values, call the */
|
386
|
+
/* function with `num_coords' set to zero and `coords' set to NULL. */
|
387
|
+
/* [Since 2.9] `Default values' means the currently selected named */
|
388
|
+
/* instance (or the base font if no named instance is selected). */
|
389
|
+
/* */
|
390
|
+
/* [Since 2.9] If `num_coords' is larger than zero, this function */
|
391
|
+
/* sets the @FT_FACE_FLAG_VARIATION bit in @FT_Face's `face_flags' */
|
392
|
+
/* field (i.e., @FT_IS_VARIATION will return true). If `num_coords' */
|
393
|
+
/* is zero, this bit flag gets unset. */
|
364
394
|
/* */
|
365
395
|
FT_EXPORT( FT_Error )
|
366
396
|
FT_Set_Var_Design_Coordinates( FT_Face face,
|
@@ -392,6 +422,9 @@ FT_BEGIN_HEADER
|
|
392
422
|
/* <Return> */
|
393
423
|
/* FreeType error code. 0~means success. */
|
394
424
|
/* */
|
425
|
+
/* <Since> */
|
426
|
+
/* 2.7.1 */
|
427
|
+
/* */
|
395
428
|
FT_EXPORT( FT_Error )
|
396
429
|
FT_Get_Var_Design_Coordinates( FT_Face face,
|
397
430
|
FT_UInt num_coords,
|
@@ -427,9 +460,15 @@ FT_BEGIN_HEADER
|
|
427
460
|
/* FreeType error code. 0~means success. */
|
428
461
|
/* */
|
429
462
|
/* <Note> */
|
430
|
-
/* To reset all axes to the default values, call the
|
431
|
-
/* `num_coords' set to zero and `coords' set to NULL
|
432
|
-
/*
|
463
|
+
/* [Since 2.8.1] To reset all axes to the default values, call the */
|
464
|
+
/* function with `num_coords' set to zero and `coords' set to NULL. */
|
465
|
+
/* [Since 2.9] `Default values' means the currently selected named */
|
466
|
+
/* instance (or the base font if no named instance is selected). */
|
467
|
+
/* */
|
468
|
+
/* [Since 2.9] If `num_coords' is larger than zero, this function */
|
469
|
+
/* sets the @FT_FACE_FLAG_VARIATION bit in @FT_Face's `face_flags' */
|
470
|
+
/* field (i.e., @FT_IS_VARIATION will return true). If `num_coords' */
|
471
|
+
/* is zero, this bit flag gets unset. */
|
433
472
|
/* */
|
434
473
|
FT_EXPORT( FT_Error )
|
435
474
|
FT_Set_MM_Blend_Coordinates( FT_Face face,
|
@@ -462,6 +501,9 @@ FT_BEGIN_HEADER
|
|
462
501
|
/* <Return> */
|
463
502
|
/* FreeType error code. 0~means success. */
|
464
503
|
/* */
|
504
|
+
/* <Since> */
|
505
|
+
/* 2.7.1 */
|
506
|
+
/* */
|
465
507
|
FT_EXPORT( FT_Error )
|
466
508
|
FT_Get_MM_Blend_Coordinates( FT_Face face,
|
467
509
|
FT_UInt num_coords,
|
@@ -490,6 +532,9 @@ FT_BEGIN_HEADER
|
|
490
532
|
/* <Description> */
|
491
533
|
/* This is another name of @FT_Get_MM_Blend_Coordinates. */
|
492
534
|
/* */
|
535
|
+
/* <Since> */
|
536
|
+
/* 2.7.1 */
|
537
|
+
/* */
|
493
538
|
FT_EXPORT( FT_Error )
|
494
539
|
FT_Get_Var_Blend_Coordinates( FT_Face face,
|
495
540
|
FT_UInt num_coords,
|
@@ -509,6 +554,9 @@ FT_BEGIN_HEADER
|
|
509
554
|
/* FT_VAR_AXIS_FLAG_HIDDEN :: */
|
510
555
|
/* The variation axis should not be exposed to user interfaces. */
|
511
556
|
/* */
|
557
|
+
/* <Since> */
|
558
|
+
/* 2.8.1 */
|
559
|
+
/* */
|
512
560
|
#define FT_VAR_AXIS_FLAG_HIDDEN 1
|
513
561
|
|
514
562
|
|
@@ -534,11 +582,51 @@ FT_BEGIN_HEADER
|
|
534
582
|
/* <Return> */
|
535
583
|
/* FreeType error code. 0~means success. */
|
536
584
|
/* */
|
585
|
+
/* <Since> */
|
586
|
+
/* 2.8.1 */
|
587
|
+
/* */
|
537
588
|
FT_EXPORT( FT_Error )
|
538
589
|
FT_Get_Var_Axis_Flags( FT_MM_Var* master,
|
539
590
|
FT_UInt axis_index,
|
540
591
|
FT_UInt* flags );
|
541
592
|
|
593
|
+
|
594
|
+
/*************************************************************************/
|
595
|
+
/* */
|
596
|
+
/* <Function> */
|
597
|
+
/* FT_Set_Named_Instance */
|
598
|
+
/* */
|
599
|
+
/* <Description> */
|
600
|
+
/* Set or change the current named instance. */
|
601
|
+
/* */
|
602
|
+
/* <Input> */
|
603
|
+
/* face :: A handle to the source face. */
|
604
|
+
/* */
|
605
|
+
/* instance_index :: The index of the requested instance, starting */
|
606
|
+
/* with value 1. If set to value 0, FreeType */
|
607
|
+
/* switches to font access without a named */
|
608
|
+
/* instance. */
|
609
|
+
/* */
|
610
|
+
/* <Return> */
|
611
|
+
/* FreeType error code. 0~means success. */
|
612
|
+
/* */
|
613
|
+
/* <Note> */
|
614
|
+
/* The function uses the value of `instance_index' to set bits 16-30 */
|
615
|
+
/* of the face's `face_index' field. It also resets any variation */
|
616
|
+
/* applied to the font, and the @FT_FACE_FLAG_VARIATION bit of the */
|
617
|
+
/* face's `face_flags' field gets reset to zero (i.e., */
|
618
|
+
/* @FT_IS_VARIATION will return false). */
|
619
|
+
/* */
|
620
|
+
/* For Adobe MM fonts (which don't have named instances) this */
|
621
|
+
/* function simply resets the current face to the default instance. */
|
622
|
+
/* */
|
623
|
+
/* <Since> */
|
624
|
+
/* 2.9 */
|
625
|
+
/* */
|
626
|
+
FT_EXPORT( FT_Error )
|
627
|
+
FT_Set_Named_Instance( FT_Face face,
|
628
|
+
FT_UInt instance_index );
|
629
|
+
|
542
630
|
/* */
|
543
631
|
|
544
632
|
|