mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
[test] Pass closure to hb_font_set_glyph_func()
Exercises fix in c335fd7986
This commit is contained in:
1 parent
e23cf902e9
commit
dd8598c1c7
1 file changed
+1
-1
@@ -101,7 +101,7 @@ test_shape (void)
|
||||
|
||||
ffuncs = hb_font_funcs_create ();
|
||||
hb_font_funcs_set_glyph_h_advance_func (ffuncs, glyph_h_advance_func, NULL, NULL);
|
||||
hb_font_funcs_set_glyph_func (ffuncs, glyph_func, NULL, NULL);
|
||||
hb_font_funcs_set_glyph_func (ffuncs, glyph_func, malloc (10), free);
|
||||
hb_font_funcs_set_glyph_h_kerning_func (ffuncs, glyph_h_kerning_func, NULL, NULL);
|
||||
hb_font_set_funcs (font, ffuncs, NULL, NULL);
|
||||
hb_font_funcs_destroy (ffuncs);
|
||||
|
||||
Reference in new issue
Block a user