Lines Matching refs:user_data
98 move_to (hb_position_t to_x, hb_position_t to_y, user_data_t *user_data) in move_to() argument
101 if (user_data->consumed + 2 * ITOA_BUF_SIZE + 4 > user_data->size) return; in move_to()
102 user_data->str[user_data->consumed++] = 'M'; in move_to()
103 user_data->consumed += _hb_itoa (to_x, user_data->str + user_data->consumed); in move_to()
104 user_data->str[user_data->consumed++] = ','; in move_to()
105 user_data->consumed += _hb_itoa (to_y, user_data->str + user_data->consumed); in move_to()
109 line_to (hb_position_t to_x, hb_position_t to_y, user_data_t *user_data) in line_to() argument
111 if (user_data->consumed + 2 * ITOA_BUF_SIZE + 4 > user_data->size) return; in line_to()
112 user_data->str[user_data->consumed++] = 'L'; in line_to()
113 user_data->consumed += _hb_itoa (to_x, user_data->str + user_data->consumed); in line_to()
114 user_data->str[user_data->consumed++] = ','; in line_to()
115 user_data->consumed += _hb_itoa (to_y, user_data->str + user_data->consumed); in line_to()
121 user_data_t *user_data) in quadratic_to() argument
124 if (user_data->consumed + 4 * ITOA_BUF_SIZE + 6 > user_data->size) return; in quadratic_to()
125 user_data->str[user_data->consumed++] = 'Q'; in quadratic_to()
126 user_data->consumed += _hb_itoa (control_x, user_data->str + user_data->consumed); in quadratic_to()
127 user_data->str[user_data->consumed++] = ','; in quadratic_to()
128 user_data->consumed += _hb_itoa (control_y, user_data->str + user_data->consumed); in quadratic_to()
129 user_data->str[user_data->consumed++] = ' '; in quadratic_to()
130 user_data->consumed += _hb_itoa (to_x, user_data->str + user_data->consumed); in quadratic_to()
131 user_data->str[user_data->consumed++] = ','; in quadratic_to()
132 user_data->consumed += _hb_itoa (to_y, user_data->str + user_data->consumed); in quadratic_to()
139 user_data_t *user_data) in cubic_to() argument
141 if (user_data->consumed + 6 * ITOA_BUF_SIZE + 8 > user_data->size) return; in cubic_to()
142 user_data->str[user_data->consumed++] = 'C'; in cubic_to()
143 user_data->consumed += _hb_itoa (control1_x, user_data->str + user_data->consumed); in cubic_to()
144 user_data->str[user_data->consumed++] = ','; in cubic_to()
145 user_data->consumed += _hb_itoa (control1_y, user_data->str + user_data->consumed); in cubic_to()
146 user_data->str[user_data->consumed++] = ' '; in cubic_to()
147 user_data->consumed += _hb_itoa (control2_x, user_data->str + user_data->consumed); in cubic_to()
148 user_data->str[user_data->consumed++] = ','; in cubic_to()
149 user_data->consumed += _hb_itoa (control2_y, user_data->str + user_data->consumed); in cubic_to()
150 user_data->str[user_data->consumed++] = ' '; in cubic_to()
151 user_data->consumed += _hb_itoa (to_x, user_data->str + user_data->consumed); in cubic_to()
152 user_data->str[user_data->consumed++] = ','; in cubic_to()
153 user_data->consumed += _hb_itoa (to_y, user_data->str + user_data->consumed); in cubic_to()
157 close_path (user_data_t *user_data) in close_path() argument
159 if (user_data->consumed + 2 > user_data->size) return; in close_path()
160 user_data->str[user_data->consumed++] = 'Z'; in close_path()
180 user_data_t user_data = { in test_hb_draw_glyf() local
186 user_data.consumed = 0; in test_hb_draw_glyf()
187 g_assert (!hb_font_draw_glyph (font, 4, funcs, &user_data)); in test_hb_draw_glyf()
189 user_data.consumed = 0; in test_hb_draw_glyf()
190 g_assert (hb_font_draw_glyph (font, 3, funcs, &user_data)); in test_hb_draw_glyf()
198 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_glyf()
201 user_data.consumed = 0; in test_hb_draw_glyf()
202 g_assert (hb_font_draw_glyph (font, 3, funcs2, &user_data)); in test_hb_draw_glyf()
212 g_assert_cmpmem (str, user_data.consumed, expected2, sizeof (expected2) - 1); in test_hb_draw_glyf()
219 user_data.consumed = 0; in test_hb_draw_glyf()
220 g_assert (hb_font_draw_glyph (font, 3, funcs, &user_data)); in test_hb_draw_glyf()
228 g_assert_cmpmem (str, user_data.consumed, expected3, sizeof (expected3) - 1); in test_hb_draw_glyf()
241 user_data_t user_data = { in test_hb_draw_cff1() local
246 g_assert (hb_font_draw_glyph (font, 3, funcs, &user_data)); in test_hb_draw_cff1()
250 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_cff1()
264 user_data_t user_data = { in test_hb_draw_cff1_rline() local
269 g_assert (hb_font_draw_glyph (font, 1, funcs, &user_data)); in test_hb_draw_cff1_rline()
275 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_cff1_rline()
288 user_data_t user_data = { in test_hb_draw_cff2() local
293 user_data.consumed = 0; in test_hb_draw_cff2()
294 g_assert (hb_font_draw_glyph (font, 3, funcs, &user_data)); in test_hb_draw_cff2()
300 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_cff2()
307 user_data.consumed = 0; in test_hb_draw_cff2()
308 g_assert (hb_font_draw_glyph (font, 3, funcs, &user_data)); in test_hb_draw_cff2()
314 g_assert_cmpmem (str, user_data.consumed, expected2, sizeof (expected2) - 1); in test_hb_draw_cff2()
324 user_data_t user_data = { in test_hb_draw_ttf_parser_tests() local
333 user_data.consumed = 0; in test_hb_draw_ttf_parser_tests()
334 g_assert (hb_font_draw_glyph (font, 0, funcs, &user_data)); in test_hb_draw_ttf_parser_tests()
336 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_ttf_parser_tests()
339 user_data.consumed = 0; in test_hb_draw_ttf_parser_tests()
340 g_assert (hb_font_draw_glyph (font, 1, funcs, &user_data)); in test_hb_draw_ttf_parser_tests()
342 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_ttf_parser_tests()
345 user_data.consumed = 0; in test_hb_draw_ttf_parser_tests()
346 g_assert (hb_font_draw_glyph (font, 4, funcs, &user_data)); in test_hb_draw_ttf_parser_tests()
354 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_ttf_parser_tests()
357 user_data.consumed = 0; in test_hb_draw_ttf_parser_tests()
358 g_assert (hb_font_draw_glyph (font, 5, funcs, &user_data)); in test_hb_draw_ttf_parser_tests()
360 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_ttf_parser_tests()
363 user_data.consumed = 0; in test_hb_draw_ttf_parser_tests()
364 g_assert (hb_font_draw_glyph (font, 6, funcs, &user_data)); in test_hb_draw_ttf_parser_tests()
369 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_ttf_parser_tests()
379 user_data.consumed = 0; in test_hb_draw_ttf_parser_tests()
380 g_assert (hb_font_draw_glyph (font, 1, funcs, &user_data)); in test_hb_draw_ttf_parser_tests()
387 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_ttf_parser_tests()
396 user_data.consumed = 0; in test_hb_draw_ttf_parser_tests()
397 g_assert (hb_font_draw_glyph (font, 1, funcs, &user_data)); in test_hb_draw_ttf_parser_tests()
401 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_ttf_parser_tests()
412 user_data_t user_data = { in test_hb_draw_font_kit_glyphs_tests() local
423 user_data.consumed = 0; in test_hb_draw_font_kit_glyphs_tests()
424 g_assert (hb_font_draw_glyph (font, 37, funcs, &user_data)); in test_hb_draw_font_kit_glyphs_tests()
431 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_font_kit_glyphs_tests()
434 user_data.consumed = 0; in test_hb_draw_font_kit_glyphs_tests()
435 g_assert (hb_font_draw_glyph (font, 171, funcs, &user_data)); in test_hb_draw_font_kit_glyphs_tests()
442 g_assert_cmpmem (str, user_data.consumed, expected2, sizeof (expected2) - 1); in test_hb_draw_font_kit_glyphs_tests()
460 user_data.consumed = 0; in test_hb_draw_font_kit_glyphs_tests()
461 g_assert (hb_font_draw_glyph (font, codepoint, funcs, &user_data)); in test_hb_draw_font_kit_glyphs_tests()
473 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_font_kit_glyphs_tests()
476 user_data.consumed = 0; in test_hb_draw_font_kit_glyphs_tests()
477 g_assert (hb_font_draw_glyph (font, 2, funcs, &user_data)); /* 2 == arAlef.fina */ in test_hb_draw_font_kit_glyphs_tests()
482 g_assert_cmpmem (str, user_data.consumed, expected2, sizeof (expected2) - 1); in test_hb_draw_font_kit_glyphs_tests()
492 user_data.consumed = 0; in test_hb_draw_font_kit_glyphs_tests()
493 g_assert (hb_font_draw_glyph (font, 5, funcs, &user_data)); in test_hb_draw_font_kit_glyphs_tests()
496 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_font_kit_glyphs_tests()
507 user_data.consumed = 0; in test_hb_draw_font_kit_glyphs_tests()
508 g_assert (hb_font_draw_glyph (font, 1, funcs, &user_data)); in test_hb_draw_font_kit_glyphs_tests()
512 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_font_kit_glyphs_tests()
524 user_data_t user_data = { in test_hb_draw_font_kit_variations_tests() local
552 user_data.consumed = 0; in test_hb_draw_font_kit_variations_tests()
553 g_assert (hb_font_draw_glyph (font, codepoint, funcs, &user_data)); in test_hb_draw_font_kit_variations_tests()
574 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_font_kit_variations_tests()
597 user_data.consumed = 0; in test_hb_draw_font_kit_variations_tests()
598 g_assert (hb_font_draw_glyph (font, codepoint, funcs, &user_data)); in test_hb_draw_font_kit_variations_tests()
618 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_font_kit_variations_tests()
641 user_data.consumed = 0; in test_hb_draw_font_kit_variations_tests()
642 g_assert (hb_font_draw_glyph (font, codepoint, funcs, &user_data)); in test_hb_draw_font_kit_variations_tests()
662 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_font_kit_variations_tests()
688 user_data.consumed = 0; in test_hb_draw_font_kit_variations_tests()
689 g_assert (hb_font_draw_glyph (font, codepoint, funcs, &user_data)); in test_hb_draw_font_kit_variations_tests()
698 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_font_kit_variations_tests()
712 user_data.consumed = 0; in test_hb_draw_font_kit_variations_tests()
713 g_assert (hb_font_draw_glyph (font, codepoint, funcs, &user_data)); in test_hb_draw_font_kit_variations_tests()
722 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_font_kit_variations_tests()
737 user_data.consumed = 0; in test_hb_draw_font_kit_variations_tests()
738 g_assert (hb_font_draw_glyph (font, codepoint, funcs, &user_data)); in test_hb_draw_font_kit_variations_tests()
746 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_font_kit_variations_tests()
758 user_data_t user_data = { in test_hb_draw_estedad_vf() local
772 user_data.consumed = 0; in test_hb_draw_estedad_vf()
773 g_assert (hb_font_draw_glyph (font, 156, funcs, &user_data)); in test_hb_draw_estedad_vf()
780 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_estedad_vf()
782 user_data.consumed = 0; in test_hb_draw_estedad_vf()
783 g_assert (hb_font_draw_glyph (font, 180, funcs, &user_data)); in test_hb_draw_estedad_vf()
800 g_assert_cmpmem (str, user_data.consumed, expected2, sizeof (expected2) - 1); in test_hb_draw_estedad_vf()
802 user_data.consumed = 0; in test_hb_draw_estedad_vf()
803 g_assert (hb_font_draw_glyph (font, 262, funcs, &user_data)); in test_hb_draw_estedad_vf()
810 g_assert_cmpmem (str, user_data.consumed, expected3, sizeof (expected3) - 1); in test_hb_draw_estedad_vf()
822 user_data_t user_data = { in test_hb_draw_stroking() local
832 user_data.consumed = 0; in test_hb_draw_stroking()
833 g_assert (hb_font_draw_glyph (font, 6, funcs, &user_data)); in test_hb_draw_stroking()
845 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_stroking()
847 user_data.consumed = 0; in test_hb_draw_stroking()
848 g_assert (hb_font_draw_glyph (font, 7, funcs, &user_data)); in test_hb_draw_stroking()
863 g_assert_cmpmem (str, user_data.consumed, expected2, sizeof (expected2) - 1); in test_hb_draw_stroking()
873 user_data.consumed = 0; in test_hb_draw_stroking()
874 g_assert (hb_font_draw_glyph (font, 4, funcs, &user_data)); in test_hb_draw_stroking()
878 g_assert_cmpmem (str, user_data.consumed, expected, sizeof (expected) - 1); in test_hb_draw_stroking()
880 user_data.consumed = 0; in test_hb_draw_stroking()
881 g_assert (hb_font_draw_glyph (font, 5, funcs, &user_data)); in test_hb_draw_stroking()
887 g_assert_cmpmem (str, user_data.consumed, expected2, sizeof (expected2) - 1); in test_hb_draw_stroking()