Lines Matching full:font
29 /* Unit tests for hb-font.h */
113 _test_font_nil_funcs (hb_font_t *font)
120 g_assert (!hb_font_get_glyph_contour_point (font, 17, 2, &x, &y));
124 x = hb_font_get_glyph_h_advance (font, 17);
129 hb_font_get_glyph_extents (font, 17, &extents);
136 g_assert (!hb_font_get_glyph (font, 17, 2, &glyph));
140 x = hb_font_get_glyph_h_kerning (font, 17, 19);
149 hb_font_t *font;
157 font = hb_font_create (face);
158 g_assert (font);
163 hb_font_set_funcs (font, ffuncs, &freed, free_up);
166 _test_font_nil_funcs (font);
168 subfont = hb_font_create_sub_font (font);
172 hb_font_destroy (font);
203 contour_point_func1 (hb_font_t *font, void *font_data,
223 contour_point_func2 (hb_font_t *font, void *font_data,
234 return hb_font_get_glyph_contour_point (hb_font_get_parent (font),
239 glyph_h_advance_func1 (hb_font_t *font, void *font_data,
366 hb_font_t *font;
374 font = hb_font_create (face);
378 g_assert (hb_font_get_face (font) == face);
379 g_assert (hb_font_get_parent (font) == NULL);
384 hb_font_get_scale (font, NULL, NULL);
386 hb_font_get_scale (font, &x_scale, NULL);
389 hb_font_get_scale (font, NULL, &y_scale);
392 hb_font_get_scale (font, &x_scale, &y_scale);
396 hb_font_set_scale (font, 17, 19);
399 hb_font_get_scale (font, &x_scale, &y_scale);
406 hb_font_get_ppem (font, NULL, NULL);
408 hb_font_get_ppem (font, &x_ppem, NULL);
411 hb_font_get_ppem (font, NULL, &y_ppem);
414 hb_font_get_ppem (font, &x_ppem, &y_ppem);
418 hb_font_set_ppem (font, 17, 19);
421 hb_font_get_ppem (font, &x_ppem, &y_ppem);
428 g_assert (!hb_font_is_immutable (font));
429 hb_font_make_immutable (font);
430 g_assert (hb_font_is_immutable (font));
432 hb_font_set_scale (font, 10, 12);
434 hb_font_get_scale (font, &x_scale, &y_scale);
438 hb_font_set_ppem (font, 10, 12);
440 hb_font_get_ppem (font, &x_ppem, &y_ppem);
446 subfont = hb_font_create_sub_font (font);
447 hb_font_destroy (font);
449 g_assert (hb_font_get_parent (subfont) == font);
463 hb_font_get_scale (font, &x_scale, &y_scale);
478 hb_font_get_ppem (font, &x_ppem, &y_ppem);