[test-paint] Print paint-color-glyph

This commit is contained in:
Behdad Esfahbod 2023-08-14 17:55:09 -06:00
parent 5560eb60d7
commit 7d7541e35d
4 changed files with 54 additions and 3 deletions

View file

@ -1,103 +1,135 @@
# random seed: R02S0cee2d366e5dbd296a38859c4a84c045
# random seed: R02S8a247191e9c73c84f166b360a40567c1
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 0 500 500 1e+03
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
start transform 1 0 -0 1 0 0
paint color glyph 154; acting as failed
end transform
start clip rectangle 0 500 500 1e+03
end clip

View file

@ -1,13 +1,15 @@
# random seed: R02S33c307340a09918aefe09266feb15798
# random seed: R02S46170a7a8abc3ad07d2b70fd08efc176
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 0 500 500 1e+03
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
paint color glyph 164; acting as failed
end transform
start clip rectangle 100 100 900 900
start transform 1 0 -0 1 0 0
paint color glyph 93; acting as failed
end transform
start clip rectangle 0 0 1e+03 1e+03
start transform 1 0 -0 1 0 0

View file

@ -1,13 +1,15 @@
# random seed: R02S08067256908fbfc782c2c2c09d648be6
# random seed: R02Sd6c6e6b574cffce42448b4c7ec9ed3b1
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 0 500 500 1e+03
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
paint color glyph 164; acting as failed
end transform
start clip rectangle 100 100 900 900
start transform 1 0 -0 1 0 0
paint color glyph 93; acting as failed
end transform
start clip rectangle 0 0 1e+03 1e+03
start transform 1 0 -0 1 0 0

View file

@ -97,6 +97,20 @@ pop_transform (hb_paint_funcs_t *funcs,
print (data, "end transform");
}
static hb_bool_t
paint_color_glyph (hb_paint_funcs_t *funcs,
void *paint_data,
hb_codepoint_t glyph,
hb_font_t *font,
void *user_data)
{
paint_data_t *data = paint_data;
print (data, "paint color glyph %u; acting as failed", glyph);
return FALSE;
}
static void
push_clip_glyph (hb_paint_funcs_t *funcs,
void *paint_data,
@ -286,6 +300,7 @@ get_test_paint_funcs (void)
hb_paint_funcs_set_push_transform_func (funcs, push_transform, NULL, NULL);
hb_paint_funcs_set_pop_transform_func (funcs, pop_transform, NULL, NULL);
hb_paint_funcs_set_color_glyph_func (funcs, paint_color_glyph, NULL, NULL);
hb_paint_funcs_set_push_clip_glyph_func (funcs, push_clip_glyph, NULL, NULL);
hb_paint_funcs_set_push_clip_rectangle_func (funcs, push_clip_rectangle, NULL, NULL);
hb_paint_funcs_set_pop_clip_func (funcs, pop_clip, NULL, NULL);