Lines Matching refs:font
37 hb_font_t *font = hb_font_create (face); in test_extents_tt_var() local
39 g_assert (font); in test_extents_tt_var()
40 hb_ot_font_set_funcs (font); in test_extents_tt_var()
43 hb_bool_t result = hb_font_get_glyph_extents (font, 2, &extents); in test_extents_tt_var()
52 hb_font_set_var_coords_design (font, coords, 1); in test_extents_tt_var()
53 result = hb_font_get_glyph_extents (font, 2, &extents); in test_extents_tt_var()
61 hb_font_destroy (font); in test_extents_tt_var()
69 hb_font_t *font = hb_font_create (face); in test_advance_tt_var_nohvar() local
71 g_assert (font); in test_advance_tt_var_nohvar()
72 hb_ot_font_set_funcs (font); in test_advance_tt_var_nohvar()
75 hb_font_get_glyph_advance_for_direction(font, 2, HB_DIRECTION_LTR, &x, &y); in test_advance_tt_var_nohvar()
80 hb_font_get_glyph_advance_for_direction(font, 2, HB_DIRECTION_TTB, &x, &y); in test_advance_tt_var_nohvar()
86 hb_font_set_var_coords_design (font, coords, 1); in test_advance_tt_var_nohvar()
87 hb_font_get_glyph_advance_for_direction(font, 2, HB_DIRECTION_LTR, &x, &y); in test_advance_tt_var_nohvar()
92 hb_font_get_glyph_advance_for_direction(font, 2, HB_DIRECTION_TTB, &x, &y); in test_advance_tt_var_nohvar()
97 hb_font_destroy (font); in test_advance_tt_var_nohvar()
105 hb_font_t *font = hb_font_create (face); in test_advance_tt_var_hvarvvar() local
107 g_assert (font); in test_advance_tt_var_hvarvvar()
108 hb_ot_font_set_funcs (font); in test_advance_tt_var_hvarvvar()
111 hb_font_get_glyph_advance_for_direction(font, 1, HB_DIRECTION_LTR, &x, &y); in test_advance_tt_var_hvarvvar()
116 hb_font_get_glyph_advance_for_direction(font, 1, HB_DIRECTION_TTB, &x, &y); in test_advance_tt_var_hvarvvar()
122 hb_font_set_var_coords_design (font, coords, 1); in test_advance_tt_var_hvarvvar()
123 hb_font_get_glyph_advance_for_direction(font, 1, HB_DIRECTION_LTR, &x, &y); in test_advance_tt_var_hvarvvar()
128 hb_font_get_glyph_advance_for_direction(font, 1, HB_DIRECTION_TTB, &x, &y); in test_advance_tt_var_hvarvvar()
133 hb_font_destroy (font); in test_advance_tt_var_hvarvvar()
141 hb_font_t *font = hb_font_create (face); in test_advance_tt_var_anchor() local
143 g_assert (font); in test_advance_tt_var_anchor()
144 hb_ot_font_set_funcs (font); in test_advance_tt_var_anchor()
147 hb_bool_t result = hb_font_get_glyph_extents (font, 2, &extents); in test_advance_tt_var_anchor()
156 hb_font_set_var_coords_design (font, coords, 1); in test_advance_tt_var_anchor()
157 result = hb_font_get_glyph_extents (font, 2, &extents); in test_advance_tt_var_anchor()
165 hb_font_destroy (font); in test_advance_tt_var_anchor()
173 hb_font_t *font = hb_font_create (face); in test_extents_tt_var_comp() local
175 g_assert (font); in test_extents_tt_var_comp()
176 hb_ot_font_set_funcs (font); in test_extents_tt_var_comp()
180 hb_font_set_var_coords_design (font, coords, 1); in test_extents_tt_var_comp()
183 …result = hb_font_get_glyph_extents (font, 2, &extents); /* Ccedilla, cedilla y-scaled by 0.8, with… in test_extents_tt_var_comp()
191 …result = hb_font_get_glyph_extents (font, 3, &extents); /* Cacute, acute y-scaled by 0.8, with uns… in test_extents_tt_var_comp()
199 …result = hb_font_get_glyph_extents (font, 4, &extents); /* Ccaron, caron y-scaled by 0.8, with sca… in test_extents_tt_var_comp()
207 hb_font_destroy (font); in test_extents_tt_var_comp()
215 hb_font_t *font = hb_font_create (face); in test_advance_tt_var_comp_v() local
217 g_assert (font); in test_advance_tt_var_comp_v()
218 hb_ot_font_set_funcs (font); in test_advance_tt_var_comp_v()
221 hb_font_set_var_coords_design (font, coords, 1); in test_advance_tt_var_comp_v()
224 …hb_font_get_glyph_advance_for_direction(font, 2, HB_DIRECTION_TTB, &x, &y); /* No VVAR; 'C' in com… in test_advance_tt_var_comp_v()
229 hb_font_get_glyph_origin_for_direction(font, 2, HB_DIRECTION_TTB, &x, &y); in test_advance_tt_var_comp_v()
234 hb_font_destroy (font); in test_advance_tt_var_comp_v()
241 hb_font_t *font = hb_font_create (face); in test_advance_tt_var_gvar_infer() local
242 hb_ot_font_set_funcs (font); in test_advance_tt_var_gvar_infer()
246 hb_font_set_var_coords_normalized (font, coords, 6); in test_advance_tt_var_gvar_infer()
249 g_assert (hb_font_get_glyph_extents (font, 4, &extents)); in test_advance_tt_var_gvar_infer()
251 hb_font_destroy (font); in test_advance_tt_var_gvar_infer()