@img/sharp-libvips-dev 1.1.0 → 1.2.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cplusplus/vips-operators.cpp +39 -0
- package/include/archive.h +53 -2
- package/include/archive_entry.h +56 -25
- package/include/ffi.h +20 -2
- package/include/fontconfig/fontconfig.h +1 -1
- package/include/glib-2.0/gio/gio-visibility.h +34 -0
- package/include/glib-2.0/gio/gzlibcompressor.h +6 -0
- package/include/glib-2.0/girepository/gi-visibility.h +34 -0
- package/include/glib-2.0/girepository/gitypes.h +6 -0
- package/include/glib-2.0/glib/gbitlock.h +11 -0
- package/include/glib-2.0/glib/gdate.h +6 -0
- package/include/glib-2.0/glib/glib-visibility.h +34 -0
- package/include/glib-2.0/glib/gmain.h +13 -10
- package/include/glib-2.0/glib/gmessages.h +4 -1
- package/include/glib-2.0/glib/gstring.h +2 -0
- package/include/glib-2.0/glib/gversionmacros.h +9 -0
- package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
- package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
- package/include/harfbuzz/hb-common.h +1 -431
- package/include/harfbuzz/hb-deprecated.h +80 -2
- package/include/harfbuzz/hb-draw.h +2 -10
- package/include/harfbuzz/hb-face.h +1 -1
- package/include/harfbuzz/hb-font.h +55 -36
- package/include/harfbuzz/hb-paint.h +5 -3
- package/include/harfbuzz/hb-script-list.h +484 -0
- package/include/harfbuzz/hb-subset.h +22 -2
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/libheif/heif.h +2 -0
- package/include/libheif/heif_version.h +2 -2
- package/include/libpng16/png.h +10 -10
- package/include/libpng16/pngconf.h +20 -27
- package/include/libpng16/pnglibconf.h +1 -1
- package/include/libxml2/libxml/HTMLparser.h +2 -2
- package/include/libxml2/libxml/parser.h +2 -0
- package/include/libxml2/libxml/xmlIO.h +2 -2
- package/include/libxml2/libxml/xmlerror.h +1 -1
- package/include/libxml2/libxml/xmlversion.h +4 -4
- package/include/pixman-1/pixman-version.h +2 -2
- package/include/pixman-1/pixman.h +200 -0
- package/include/png.h +10 -10
- package/include/pngconf.h +20 -27
- package/include/pnglibconf.h +1 -1
- package/include/vips/VImage8.h +62 -14
- package/include/vips/arithmetic.h +34 -34
- package/include/vips/basic.h +16 -0
- package/include/vips/buf.h +0 -5
- package/include/vips/colour.h +6 -7
- package/include/vips/connection.h +25 -37
- package/include/vips/enumtypes.h +11 -2
- package/include/vips/foreign.h +73 -43
- package/include/vips/format.h +7 -5
- package/include/vips/gate.h +0 -11
- package/include/vips/header.h +11 -11
- package/include/vips/image.h +8 -3
- package/include/vips/interpolate.h +0 -2
- package/include/vips/memory.h +4 -0
- package/include/vips/mosaicing.h +4 -0
- package/include/vips/object.h +14 -18
- package/include/vips/operation.h +0 -2
- package/include/vips/private.h +50 -2
- package/include/vips/region.h +1 -3
- package/include/vips/resample.h +2 -0
- package/include/vips/semaphore.h +8 -3
- package/include/vips/thread.h +1 -24
- package/include/vips/threadpool.h +0 -6
- package/include/vips/type.h +13 -9
- package/include/vips/util.h +17 -98
- package/include/vips/vector.h +0 -4
- package/include/vips/version.h +8 -8
- package/include/vips/vips.h +1 -0
- package/package.json +1 -1
- package/versions.json +11 -11
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +0 -221
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-autocleanups.h +0 -37
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +0 -525
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +0 -40
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +0 -115
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +0 -481
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +0 -113
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +0 -718
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +0 -33
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +0 -70
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +0 -168
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +0 -46
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +0 -165
- package/include/glib-2.0/glib/gwin32.h +0 -142
- package/include/harfbuzz/hb-subset-repacker.h +0 -81
- package/include/hwy/ops/tuple-inl.h +0 -125
- package/include/orc-0.4/orc/orc-stdint.h +0 -1
- package/include/orc-0.4/orc/orc.h +0 -16
- package/include/orc-0.4/orc/orcarm.h +0 -879
- package/include/orc-0.4/orc/orcbytecode.h +0 -35
- package/include/orc-0.4/orc/orcbytecodes.h +0 -255
- package/include/orc-0.4/orc/orccode.h +0 -53
- package/include/orc-0.4/orc/orccompiler.h +0 -176
- package/include/orc-0.4/orc/orcconstant.h +0 -39
- package/include/orc-0.4/orc/orccpu.h +0 -21
- package/include/orc-0.4/orc/orccpuinsn.h +0 -40
- package/include/orc-0.4/orc/orcdebug.h +0 -158
- package/include/orc-0.4/orc/orcemulateopcodes.h +0 -203
- package/include/orc-0.4/orc/orcexecutor.h +0 -135
- package/include/orc-0.4/orc/orcfunctions.h +0 -93
- package/include/orc-0.4/orc/orcinstruction.h +0 -39
- package/include/orc-0.4/orc/orcinternal.h +0 -46
- package/include/orc-0.4/orc/orclimits.h +0 -94
- package/include/orc-0.4/orc/orcmips.h +0 -229
- package/include/orc-0.4/orc/orcmmx.h +0 -79
- package/include/orc-0.4/orc/orcneon.h +0 -43
- package/include/orc-0.4/orc/orconce.h +0 -166
- package/include/orc-0.4/orc/orcopcode.h +0 -63
- package/include/orc-0.4/orc/orcparse.h +0 -27
- package/include/orc-0.4/orc/orcpowerpc.h +0 -209
- package/include/orc-0.4/orc/orcprogram.h +0 -192
- package/include/orc-0.4/orc/orcrule.h +0 -52
- package/include/orc-0.4/orc/orcsse.h +0 -55
- package/include/orc-0.4/orc/orctarget.h +0 -115
- package/include/orc-0.4/orc/orcutils.h +0 -238
- package/include/orc-0.4/orc/orcvariable.h +0 -81
- package/include/orc-0.4/orc/orcx86.h +0 -199
- package/include/orc-0.4/orc/orcx86insn.h +0 -672
|
@@ -275,6 +275,48 @@ typedef void (*hb_font_get_glyph_shape_func_t) (hb_font_t *font, void *font_data
|
|
|
275
275
|
hb_draw_funcs_t *draw_funcs, void *draw_data,
|
|
276
276
|
void *user_data);
|
|
277
277
|
|
|
278
|
+
/**
|
|
279
|
+
* hb_font_draw_glyph_func_t:
|
|
280
|
+
* @font: #hb_font_t to work upon
|
|
281
|
+
* @font_data: @font user data pointer
|
|
282
|
+
* @glyph: The glyph ID to query
|
|
283
|
+
* @draw_funcs: The draw functions to send the shape data to
|
|
284
|
+
* @draw_data: The data accompanying the draw functions
|
|
285
|
+
* @user_data: User data pointer passed by the caller
|
|
286
|
+
*
|
|
287
|
+
* A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
|
|
288
|
+
*
|
|
289
|
+
* Since: 7.0.0
|
|
290
|
+
* XDeprecated: REPLACEME: Use hb_font_draw_glyph_func_or_fail_t instead.
|
|
291
|
+
**/
|
|
292
|
+
typedef void (*hb_font_draw_glyph_func_t) (hb_font_t *font, void *font_data,
|
|
293
|
+
hb_codepoint_t glyph,
|
|
294
|
+
hb_draw_funcs_t *draw_funcs, void *draw_data,
|
|
295
|
+
void *user_data);
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* hb_font_paint_glyph_func_t:
|
|
299
|
+
* @font: #hb_font_t to work upon
|
|
300
|
+
* @font_data: @font user data pointer
|
|
301
|
+
* @glyph: The glyph ID to query
|
|
302
|
+
* @paint_funcs: The paint functions to use
|
|
303
|
+
* @paint_data: The data accompanying the paint functions
|
|
304
|
+
* @palette_index: The color palette to use
|
|
305
|
+
* @foreground: The foreground color
|
|
306
|
+
* @user_data: User data pointer passed by the caller
|
|
307
|
+
*
|
|
308
|
+
* A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
|
|
309
|
+
*
|
|
310
|
+
* Since: 7.0.0
|
|
311
|
+
* XDeprecated: REPLACEME: Use hb_font_paint_glyph_or_fail_func_t instead.
|
|
312
|
+
*/
|
|
313
|
+
typedef hb_bool_t (*hb_font_paint_glyph_func_t) (hb_font_t *font, void *font_data,
|
|
314
|
+
hb_codepoint_t glyph,
|
|
315
|
+
hb_paint_funcs_t *paint_funcs, void *paint_data,
|
|
316
|
+
unsigned int palette_index,
|
|
317
|
+
hb_color_t foreground,
|
|
318
|
+
void *user_data);
|
|
319
|
+
|
|
278
320
|
/**
|
|
279
321
|
* hb_font_funcs_set_glyph_shape_func:
|
|
280
322
|
* @ffuncs: A font-function structure
|
|
@@ -288,13 +330,49 @@ typedef void (*hb_font_get_glyph_shape_func_t) (hb_font_t *font, void *font_data
|
|
|
288
330
|
* Since: 4.0.0
|
|
289
331
|
* Deprecated: 7.0.0: Use hb_font_funcs_set_draw_glyph_func() instead
|
|
290
332
|
**/
|
|
291
|
-
HB_DEPRECATED_FOR (
|
|
333
|
+
HB_DEPRECATED_FOR (hb_font_funcs_set_draw_glyph_or_fail_func)
|
|
292
334
|
HB_EXTERN void
|
|
293
335
|
hb_font_funcs_set_glyph_shape_func (hb_font_funcs_t *ffuncs,
|
|
294
336
|
hb_font_get_glyph_shape_func_t func,
|
|
295
337
|
void *user_data, hb_destroy_func_t destroy);
|
|
296
338
|
|
|
297
|
-
|
|
339
|
+
/**
|
|
340
|
+
* hb_font_funcs_set_draw_glyph_func:
|
|
341
|
+
* @ffuncs: A font-function structure
|
|
342
|
+
* @func: (closure user_data) (destroy destroy) (scope notified): The callback function to assign
|
|
343
|
+
* @user_data: Data to pass to @func
|
|
344
|
+
* @destroy: (nullable): The function to call when @user_data is not needed anymore
|
|
345
|
+
*
|
|
346
|
+
* Sets the implementation function for #hb_font_draw_glyph_func_t.
|
|
347
|
+
*
|
|
348
|
+
* Since: 7.0.0
|
|
349
|
+
* XDeprecated: REPLACEME: Use hb_font_funcs_set_draw_glyph_or_fail_func instead.
|
|
350
|
+
**/
|
|
351
|
+
HB_DEPRECATED_FOR (hb_font_funcs_set_draw_glyph_or_fail_func)
|
|
352
|
+
HB_EXTERN void
|
|
353
|
+
hb_font_funcs_set_draw_glyph_func (hb_font_funcs_t *ffuncs,
|
|
354
|
+
hb_font_draw_glyph_func_t func,
|
|
355
|
+
void *user_data, hb_destroy_func_t destroy);
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* hb_font_funcs_set_paint_glyph_func:
|
|
359
|
+
* @ffuncs: A font-function structure
|
|
360
|
+
* @func: (closure user_data) (destroy destroy) (scope notified): The callback function to assign
|
|
361
|
+
* @user_data: Data to pass to @func
|
|
362
|
+
* @destroy: (nullable): The function to call when @user_data is no longer needed
|
|
363
|
+
*
|
|
364
|
+
* Sets the implementation function for #hb_font_paint_glyph_func_t.
|
|
365
|
+
*
|
|
366
|
+
* Since: 7.0.0
|
|
367
|
+
* XDeprecated: REPLACEME: Use hb_font_funcs_set_paint_glyph_or_fail_func() instead.
|
|
368
|
+
*/
|
|
369
|
+
HB_DEPRECATED_FOR (hb_font_funcs_set_paint_glyph_or_fail_func)
|
|
370
|
+
HB_EXTERN void
|
|
371
|
+
hb_font_funcs_set_paint_glyph_func (hb_font_funcs_t *ffuncs,
|
|
372
|
+
hb_font_paint_glyph_func_t func,
|
|
373
|
+
void *user_data, hb_destroy_func_t destroy);
|
|
374
|
+
|
|
375
|
+
HB_DEPRECATED_FOR (hb_font_draw_glyph_or_fail)
|
|
298
376
|
HB_EXTERN void
|
|
299
377
|
hb_font_get_glyph_shape (hb_font_t *font,
|
|
300
378
|
hb_codepoint_t glyph,
|
|
@@ -41,16 +41,9 @@ HB_BEGIN_DECLS
|
|
|
41
41
|
* @path_start_y: Y component of the start of current path
|
|
42
42
|
* @current_x: X component of current point
|
|
43
43
|
* @current_y: Y component of current point
|
|
44
|
-
* @slant_xy: (Since: 11.0.0): Slanting factor for synthetic oblique
|
|
45
44
|
*
|
|
46
45
|
* Current drawing state.
|
|
47
46
|
*
|
|
48
|
-
* The @slant_xy is a slanting factor for synthetic oblique. If the font's
|
|
49
|
-
* oblique angle is not 0, this factor is used to slant the drawing. For
|
|
50
|
-
* fonts with uniform x and y scales, this factor is calculated as
|
|
51
|
-
* tan(oblique_angle). For fonts with non-uniform scales, this factor is
|
|
52
|
-
* calculated as tan(oblique_angle) * x_scale / y_scale, or 0 if y_scale is 0.
|
|
53
|
-
*
|
|
54
47
|
* Since: 4.0.0
|
|
55
48
|
**/
|
|
56
49
|
typedef struct hb_draw_state_t {
|
|
@@ -62,8 +55,6 @@ typedef struct hb_draw_state_t {
|
|
|
62
55
|
float current_x;
|
|
63
56
|
float current_y;
|
|
64
57
|
|
|
65
|
-
float slant_xy;
|
|
66
|
-
|
|
67
58
|
/*< private >*/
|
|
68
59
|
hb_var_num_t reserved1;
|
|
69
60
|
hb_var_num_t reserved2;
|
|
@@ -71,6 +62,7 @@ typedef struct hb_draw_state_t {
|
|
|
71
62
|
hb_var_num_t reserved4;
|
|
72
63
|
hb_var_num_t reserved5;
|
|
73
64
|
hb_var_num_t reserved6;
|
|
65
|
+
hb_var_num_t reserved7;
|
|
74
66
|
} hb_draw_state_t;
|
|
75
67
|
|
|
76
68
|
/**
|
|
@@ -78,7 +70,7 @@ typedef struct hb_draw_state_t {
|
|
|
78
70
|
*
|
|
79
71
|
* The default #hb_draw_state_t at the start of glyph drawing.
|
|
80
72
|
*/
|
|
81
|
-
#define HB_DRAW_STATE_DEFAULT {0, 0.f, 0.f, 0.f, 0.f, 0
|
|
73
|
+
#define HB_DRAW_STATE_DEFAULT {0, 0.f, 0.f, 0.f, 0.f, {0}, {0}, {0}, {0}, {0}, {0}, {0}}
|
|
82
74
|
|
|
83
75
|
|
|
84
76
|
/**
|
|
@@ -486,7 +486,7 @@ typedef hb_bool_t (*hb_font_get_glyph_from_name_func_t) (hb_font_t *font, void *
|
|
|
486
486
|
void *user_data);
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
|
-
*
|
|
489
|
+
* hb_font_draw_glyph_or_fail_func_t:
|
|
490
490
|
* @font: #hb_font_t to work upon
|
|
491
491
|
* @font_data: @font user data pointer
|
|
492
492
|
* @glyph: The glyph ID to query
|
|
@@ -496,16 +496,17 @@ typedef hb_bool_t (*hb_font_get_glyph_from_name_func_t) (hb_font_t *font, void *
|
|
|
496
496
|
*
|
|
497
497
|
* A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
|
|
498
498
|
*
|
|
499
|
-
*
|
|
499
|
+
* Return value: `true` if glyph was drawn, `false` otherwise
|
|
500
500
|
*
|
|
501
|
+
* XSince: REPLACEME
|
|
501
502
|
**/
|
|
502
|
-
typedef
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
503
|
+
typedef hb_bool_t (*hb_font_draw_glyph_or_fail_func_t) (hb_font_t *font, void *font_data,
|
|
504
|
+
hb_codepoint_t glyph,
|
|
505
|
+
hb_draw_funcs_t *draw_funcs, void *draw_data,
|
|
506
|
+
void *user_data);
|
|
506
507
|
|
|
507
508
|
/**
|
|
508
|
-
*
|
|
509
|
+
* hb_font_paint_glyph_or_fail_func_t:
|
|
509
510
|
* @font: #hb_font_t to work upon
|
|
510
511
|
* @font_data: @font user data pointer
|
|
511
512
|
* @glyph: The glyph ID to query
|
|
@@ -517,14 +518,16 @@ typedef void (*hb_font_draw_glyph_func_t) (hb_font_t *font, void *font_data,
|
|
|
517
518
|
*
|
|
518
519
|
* A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
|
|
519
520
|
*
|
|
520
|
-
*
|
|
521
|
+
* Return value: `true` if glyph was painted, `false` otherwise
|
|
522
|
+
*
|
|
523
|
+
* XSince: REPLACEME
|
|
521
524
|
*/
|
|
522
|
-
typedef
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
525
|
+
typedef hb_bool_t (*hb_font_paint_glyph_or_fail_func_t) (hb_font_t *font, void *font_data,
|
|
526
|
+
hb_codepoint_t glyph,
|
|
527
|
+
hb_paint_funcs_t *paint_funcs, void *paint_data,
|
|
528
|
+
unsigned int palette_index,
|
|
529
|
+
hb_color_t foreground,
|
|
530
|
+
void *user_data);
|
|
528
531
|
|
|
529
532
|
/* func setters */
|
|
530
533
|
|
|
@@ -785,36 +788,36 @@ hb_font_funcs_set_glyph_from_name_func (hb_font_funcs_t *ffuncs,
|
|
|
785
788
|
void *user_data, hb_destroy_func_t destroy);
|
|
786
789
|
|
|
787
790
|
/**
|
|
788
|
-
*
|
|
791
|
+
* hb_font_funcs_set_draw_glyph_or_fail_func:
|
|
789
792
|
* @ffuncs: A font-function structure
|
|
790
793
|
* @func: (closure user_data) (destroy destroy) (scope notified): The callback function to assign
|
|
791
794
|
* @user_data: Data to pass to @func
|
|
792
795
|
* @destroy: (nullable): The function to call when @user_data is not needed anymore
|
|
793
796
|
*
|
|
794
|
-
* Sets the implementation function for #
|
|
797
|
+
* Sets the implementation function for #hb_font_draw_glyph_or_fail_func_t.
|
|
795
798
|
*
|
|
796
|
-
*
|
|
799
|
+
* XSince: REPLACEME
|
|
797
800
|
**/
|
|
798
801
|
HB_EXTERN void
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
+
hb_font_funcs_set_draw_glyph_or_fail_func (hb_font_funcs_t *ffuncs,
|
|
803
|
+
hb_font_draw_glyph_or_fail_func_t func,
|
|
804
|
+
void *user_data, hb_destroy_func_t destroy);
|
|
802
805
|
|
|
803
806
|
/**
|
|
804
|
-
*
|
|
807
|
+
* hb_font_funcs_set_paint_glyph_or_fail_func:
|
|
805
808
|
* @ffuncs: A font-function structure
|
|
806
809
|
* @func: (closure user_data) (destroy destroy) (scope notified): The callback function to assign
|
|
807
810
|
* @user_data: Data to pass to @func
|
|
808
811
|
* @destroy: (nullable): The function to call when @user_data is no longer needed
|
|
809
812
|
*
|
|
810
|
-
* Sets the implementation function for #
|
|
813
|
+
* Sets the implementation function for #hb_font_paint_glyph_or_fail_func_t.
|
|
811
814
|
*
|
|
812
|
-
*
|
|
815
|
+
* XSince: REPLACEME
|
|
813
816
|
*/
|
|
814
817
|
HB_EXTERN void
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
+
hb_font_funcs_set_paint_glyph_or_fail_func (hb_font_funcs_t *ffuncs,
|
|
819
|
+
hb_font_paint_glyph_or_fail_func_t func,
|
|
820
|
+
void *user_data, hb_destroy_func_t destroy);
|
|
818
821
|
|
|
819
822
|
/* func dispatch */
|
|
820
823
|
|
|
@@ -896,17 +899,17 @@ hb_font_get_glyph_from_name (hb_font_t *font,
|
|
|
896
899
|
const char *name, int len, /* -1 means nul-terminated */
|
|
897
900
|
hb_codepoint_t *glyph);
|
|
898
901
|
|
|
899
|
-
HB_EXTERN
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
902
|
+
HB_EXTERN hb_bool_t
|
|
903
|
+
hb_font_draw_glyph_or_fail (hb_font_t *font,
|
|
904
|
+
hb_codepoint_t glyph,
|
|
905
|
+
hb_draw_funcs_t *dfuncs, void *draw_data);
|
|
903
906
|
|
|
904
|
-
HB_EXTERN
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
907
|
+
HB_EXTERN hb_bool_t
|
|
908
|
+
hb_font_paint_glyph_or_fail (hb_font_t *font,
|
|
909
|
+
hb_codepoint_t glyph,
|
|
910
|
+
hb_paint_funcs_t *pfuncs, void *paint_data,
|
|
911
|
+
unsigned int palette_index,
|
|
912
|
+
hb_color_t foreground);
|
|
910
913
|
|
|
911
914
|
/* high-level funcs, with fallback */
|
|
912
915
|
|
|
@@ -979,6 +982,19 @@ hb_font_glyph_from_string (hb_font_t *font,
|
|
|
979
982
|
const char *s, int len, /* -1 means nul-terminated */
|
|
980
983
|
hb_codepoint_t *glyph);
|
|
981
984
|
|
|
985
|
+
/* Older alias for hb_font_draw_glyph_or_fail() with no return value. */
|
|
986
|
+
HB_EXTERN void
|
|
987
|
+
hb_font_draw_glyph (hb_font_t *font,
|
|
988
|
+
hb_codepoint_t glyph,
|
|
989
|
+
hb_draw_funcs_t *dfuncs, void *draw_data);
|
|
990
|
+
|
|
991
|
+
/* Paints color glyph; if failed, draws outline glyph. */
|
|
992
|
+
HB_EXTERN void
|
|
993
|
+
hb_font_paint_glyph (hb_font_t *font,
|
|
994
|
+
hb_codepoint_t glyph,
|
|
995
|
+
hb_paint_funcs_t *pfuncs, void *paint_data,
|
|
996
|
+
unsigned int palette_index,
|
|
997
|
+
hb_color_t foreground);
|
|
982
998
|
|
|
983
999
|
/*
|
|
984
1000
|
* hb_font_t
|
|
@@ -1092,6 +1108,9 @@ hb_font_set_ptem (hb_font_t *font, float ptem);
|
|
|
1092
1108
|
HB_EXTERN float
|
|
1093
1109
|
hb_font_get_ptem (hb_font_t *font);
|
|
1094
1110
|
|
|
1111
|
+
HB_EXTERN hb_bool_t
|
|
1112
|
+
hb_font_is_synthetic (hb_font_t *font);
|
|
1113
|
+
|
|
1095
1114
|
HB_EXTERN void
|
|
1096
1115
|
hb_font_set_synthetic_bold (hb_font_t *font,
|
|
1097
1116
|
float x_embolden, float y_embolden,
|
|
@@ -167,8 +167,10 @@ typedef hb_bool_t (*hb_paint_color_glyph_func_t) (hb_paint_funcs_t *funcs,
|
|
|
167
167
|
* A virtual method for the #hb_paint_funcs_t to clip
|
|
168
168
|
* subsequent paint calls to the outline of a glyph.
|
|
169
169
|
*
|
|
170
|
-
* The coordinates of the glyph outline are
|
|
171
|
-
*
|
|
170
|
+
* The coordinates of the glyph outline are expected in the
|
|
171
|
+
* current @font scale (ie. the results of calling
|
|
172
|
+
* hb_font_draw_glyph() with @font). The outline is
|
|
173
|
+
* transformed by the current transform.
|
|
172
174
|
*
|
|
173
175
|
* This clip is applied in addition to the current clip,
|
|
174
176
|
* and remains in effect until a matching call to
|
|
@@ -281,7 +283,7 @@ typedef void (*hb_paint_color_func_t) (hb_paint_funcs_t *funcs,
|
|
|
281
283
|
* @width: width of the raster image in pixels, or 0
|
|
282
284
|
* @height: height of the raster image in pixels, or 0
|
|
283
285
|
* @format: the image format as a tag
|
|
284
|
-
* @slant:
|
|
286
|
+
* @slant: Deprecated. Always set to 0.0.
|
|
285
287
|
* @extents: (nullable): glyph extents for desired rendering
|
|
286
288
|
* @user_data: User data pointer passed to hb_paint_funcs_set_image_func()
|
|
287
289
|
*
|