Bug 1853320 [wpt PR 41940] - [FLEDGE] Split up runs of /trusted-scoring-signals.https...
[gecko.git] / gfx / cairo / 05-ft-font-synth-flags-api.patch
bloba234872034591494ec417df3e29ecc7fa7a15c5e
1 diff --git a/gfx/cairo/cairo/src/cairo-ft-font.c b/gfx/cairo/cairo/src/cairo-ft-font.c
2 --- a/gfx/cairo/cairo/src/cairo-ft-font.c
3 +++ b/gfx/cairo/cairo/src/cairo-ft-font.c
4 @@ -3736,7 +3736,8 @@ cairo_ft_font_face_create_for_pattern (F
5 **/
6 cairo_font_face_t *
7 cairo_ft_font_face_create_for_ft_face (FT_Face face,
8 - int load_flags)
9 + int load_flags,
10 + unsigned int synth_flags)
12 cairo_ft_unscaled_font_t *unscaled;
13 cairo_font_face_t *font_face;
14 @@ -3748,7 +3749,7 @@ cairo_ft_font_face_create_for_ft_face (F
15 return (cairo_font_face_t *)&_cairo_font_face_nil;
17 ft_options.load_flags = load_flags;
18 - ft_options.synth_flags = 0;
19 + ft_options.synth_flags = synth_flags;
20 _cairo_font_options_init_default (&ft_options.base);
22 font_face = _cairo_ft_font_face_create (unscaled, &ft_options);
23 diff --git a/gfx/cairo/cairo/src/cairo-ft.h b/gfx/cairo/cairo/src/cairo-ft.h
24 --- a/gfx/cairo/cairo/src/cairo-ft.h
25 +++ b/gfx/cairo/cairo/src/cairo-ft.h
26 @@ -54,7 +54,8 @@ CAIRO_BEGIN_DECLS
28 cairo_public cairo_font_face_t *
29 cairo_ft_font_face_create_for_ft_face (FT_Face face,
30 - int load_flags);
31 + int load_flags,
32 + unsigned int synth_flags);
34 /**
35 * cairo_ft_synthesize_t: