Home
last modified time | relevance | path

Searched refs:font (Results 1 - 25 of 955) sorted by relevance

12345678910>>...39

/third_party/skia/third_party/externals/harfbuzz/test/api/
H A Dtest-style.c49 hb_font_t *font = hb_font_create (face); in test_regular_face() local
51 assert_cmpfloat (hb_style_get_value (font, HB_STYLE_TAG_ITALIC), 0); in test_regular_face()
52 assert_cmpfloat (hb_style_get_value (font, HB_STYLE_TAG_OPTICAL_SIZE), 12); in test_regular_face()
53 assert_cmpfloat (hb_style_get_value (font, HB_STYLE_TAG_SLANT_ANGLE), 0); in test_regular_face()
54 assert_cmpfloat (hb_style_get_value (font, HB_STYLE_TAG_WIDTH), 100); in test_regular_face()
55 assert_cmpfloat (hb_style_get_value (font, HB_STYLE_TAG_WEIGHT), 400); in test_regular_face()
57 hb_font_destroy (font); in test_regular_face()
65 hb_font_t *font = hb_font_create (face); in test_face_user_setting() local
67 assert_cmpfloat (hb_style_get_value (font, HB_STYLE_TAG_ITALIC), 0); in test_face_user_setting()
68 assert_cmpfloat (hb_style_get_value (font, HB_STYLE_TAG_OPTICAL_SIZ in test_face_user_setting()
[all...]
H A Dtest-ot-metrics-tt-var.c37 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()
105 hb_font_t *font = hb_font_create (face); test_advance_tt_var_hvarvvar() local
141 hb_font_t *font = hb_font_create (face); test_advance_tt_var_anchor() local
173 hb_font_t *font = hb_font_create (face); test_extents_tt_var_comp() local
215 hb_font_t *font = hb_font_create (face); test_advance_tt_var_comp_v() local
241 hb_font_t *font = hb_font_create (face); test_advance_tt_var_gvar_infer() local
[all...]
H A Dtest-ot-extents-cff.c37 hb_font_t *font = hb_font_create (face); in test_extents_cff1() local
39 g_assert (font); in test_extents_cff1()
40 hb_ot_font_set_funcs (font); in test_extents_cff1()
43 hb_bool_t result = hb_font_get_glyph_extents (font, 1, &extents); in test_extents_cff1()
51 hb_font_destroy (font); in test_extents_cff1()
76 hb_font_t *font = hb_font_create (face); in test_extents_cff1_flex() local
78 g_assert (font); in test_extents_cff1_flex()
79 hb_ot_font_set_funcs (font); in test_extents_cff1_flex()
82 hb_bool_t result = hb_font_get_glyph_extents (font, 1, &extents); in test_extents_cff1_flex()
90 hb_font_destroy (font); in test_extents_cff1_flex()
98 hb_font_t *font = hb_font_create (face); test_extents_cff1_seac() local
128 hb_font_t *font = hb_font_create (face); test_extents_cff2() local
160 hb_font_t *font = hb_font_create (face); test_extents_cff2_vsindex() local
192 hb_font_t *font = hb_font_create (face); test_extents_cff2_vsindex_named_instance() local
[all...]
H A Dtest-ot-face.c37 test_font (hb_font_t *font, hb_codepoint_t cp) in test_font() argument
41 hb_face_t *face = hb_font_get_face (font); in test_font()
48 hb_ot_font_set_funcs (font); in test_font()
55 hb_font_get_nominal_glyph (font, cp, &g); in test_font()
56 hb_font_get_variation_glyph (font, cp, cp, &g); in test_font()
57 hb_font_get_glyph_h_advance (font, cp); in test_font()
58 hb_font_get_glyph_v_advance (font, cp); in test_font()
59 hb_font_get_glyph_h_origin (font, cp, &x, &y); in test_font()
60 hb_font_get_glyph_v_origin (font, cp, &x, &y); in test_font()
61 hb_font_get_glyph_extents (font, c in test_font()
[all...]
H A Dtest-draw.c176 hb_font_t *font = hb_font_create (face); in test_hb_draw_glyf() local
187 g_assert (!hb_font_draw_glyph (font, 4, funcs, &user_data)); in test_hb_draw_glyf()
190 g_assert (hb_font_draw_glyph (font, 3, funcs, &user_data)); in test_hb_draw_glyf()
202 g_assert (hb_font_draw_glyph (font, 3, funcs2, &user_data)); in test_hb_draw_glyf()
217 hb_font_set_variations (font, &var, 1); in test_hb_draw_glyf()
220 g_assert (hb_font_draw_glyph (font, 3, funcs, &user_data)); in test_hb_draw_glyf()
230 hb_font_destroy (font); in test_hb_draw_glyf()
237 hb_font_t *font = hb_font_create (face); in test_hb_draw_cff1() local
246 g_assert (hb_font_draw_glyph (font, 3, funcs, &user_data)); in test_hb_draw_cff1()
252 hb_font_destroy (font); in test_hb_draw_cff1()
260 hb_font_t *font = hb_font_create (face); test_hb_draw_cff1_rline() local
284 hb_font_t *font = hb_font_create (face); test_hb_draw_cff2() local
330 hb_font_t *font = hb_font_create (face); test_hb_draw_ttf_parser_tests() local
376 hb_font_t *font = hb_font_create (face); test_hb_draw_ttf_parser_tests() local
393 hb_font_t *font = hb_font_create (face); test_hb_draw_ttf_parser_tests() local
419 hb_font_t *font = hb_font_create (face); test_hb_draw_font_kit_glyphs_tests() local
448 hb_font_t *font = hb_font_create (face); test_hb_draw_font_kit_glyphs_tests() local
489 hb_font_t *font = hb_font_create (face); test_hb_draw_font_kit_glyphs_tests() local
504 hb_font_t *font = hb_font_create (face); test_hb_draw_font_kit_glyphs_tests() local
536 hb_font_t *font = hb_font_create (face); test_hb_draw_font_kit_variations_tests() local
581 hb_font_t *font = hb_font_create (face); test_hb_draw_font_kit_variations_tests() local
625 hb_font_t *font = hb_font_create (face); test_hb_draw_font_kit_variations_tests() local
670 hb_font_t *font = hb_font_create (face); test_hb_draw_font_kit_variations_tests() local
765 hb_font_t *font = hb_font_create (face); test_hb_draw_estedad_vf() local
829 hb_font_t *font = hb_font_create (face); test_hb_draw_stroking() local
870 hb_font_t *font = hb_font_create (face); test_hb_draw_stroking() local
[all...]
H A Dtest-ot-metrics.c37 hb_font_t *font = hb_font_create (face); in test_ot_metrics_get_no_var() local
39 g_assert (hb_ot_metrics_get_position (font, HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER, &value)); in test_ot_metrics_get_no_var()
41 g_assert_cmpint (hb_ot_metrics_get_x_variation (font, HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER), ==, 0); in test_ot_metrics_get_no_var()
42 g_assert_cmpint (hb_ot_metrics_get_y_variation (font, HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER), ==, 0); in test_ot_metrics_get_no_var()
43 g_assert_cmpint (hb_ot_metrics_get_x_variation (font, HB_OT_METRICS_TAG_X_HEIGHT), ==, 0); in test_ot_metrics_get_no_var()
44 // g_assert_cmpint ((int) hb_ot_metrics_get_variation (font, HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER), ==, 0); in test_ot_metrics_get_no_var()
45 hb_font_destroy (font); in test_ot_metrics_get_no_var()
53 hb_font_t *font = hb_font_create (face); in test_ot_metrics_get_var() local
55 g_assert (hb_ot_metrics_get_position (font, HB_OT_METRICS_TAG_X_HEIGHT, &value)); in test_ot_metrics_get_var()
57 g_assert_cmpint (hb_ot_metrics_get_x_variation (font, HB_OT_METRICS_TAG_HORIZONTAL_ASCENDE in test_ot_metrics_get_var()
[all...]
H A Dtest-ot-glyphname.c31 test_one_glyph (hb_font_t *font, hb_codepoint_t gid, const char *name) in test_one_glyph() argument
36 g_assert(hb_font_get_glyph_name (font, gid, buf, sizeof (buf))); in test_one_glyph()
38 g_assert(hb_font_get_glyph_from_name (font, name, -1, &glyph)); in test_one_glyph()
48 hb_font_t *font = hb_font_create (face); in test_standard_names() local
50 test_one_glyph (font, 0, ".notdef"); in test_standard_names()
51 test_one_glyph (font, 27, "Z"); in test_standard_names()
53 hb_font_destroy (font); in test_standard_names()
61 hb_font_t *font = hb_font_create (face); in test_non_standard_names() local
63 test_one_glyph (font, 46, "arrowdblright"); in test_non_standard_names()
64 test_one_glyph (font, 13 in test_non_standard_names()
74 hb_font_t *font = hb_font_create (face); test_predef_charset_names() local
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-font.cc31 #include "hb-font.hh"
41 * SECTION:hb-font
42 * @title: hb-font
46 * Functions for working with font objects.
48 * A font object represents a font face at a specific size and with
50 * settings) specified. Font objects are created from font face
54 * implement the basic, lower-level queries of font objects. This set
55 * of font functions is defined by the virtual methods in
68 hb_font_get_font_h_extents_nil (hb_font_t *font HB_UNUSE
78 hb_font_get_font_h_extents_default(hb_font_t *font, void *font_data HB_UNUSED, hb_font_extents_t *extents, void *user_data HB_UNUSED) hb_font_get_font_h_extents_default() argument
103 hb_font_get_font_v_extents_default(hb_font_t *font, void *font_data HB_UNUSED, hb_font_extents_t *extents, void *user_data HB_UNUSED) hb_font_get_font_v_extents_default() argument
129 hb_font_get_nominal_glyph_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t unicode, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_font_get_nominal_glyph_default() argument
145 hb_font_get_nominal_glyphs_default(hb_font_t *font, void *font_data HB_UNUSED, unsigned int count, const hb_codepoint_t *first_unicode, unsigned int unicode_stride, hb_codepoint_t *first_glyph, unsigned int glyph_stride, void *user_data HB_UNUSED) hb_font_get_nominal_glyphs_default() argument
185 hb_font_get_variation_glyph_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t unicode, hb_codepoint_t variation_selector, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_font_get_variation_glyph_default() argument
197 hb_font_get_glyph_h_advance_nil(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph HB_UNUSED, void *user_data HB_UNUSED) hb_font_get_glyph_h_advance_nil() argument
206 hb_font_get_glyph_h_advance_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, void *user_data HB_UNUSED) hb_font_get_glyph_h_advance_default() argument
221 hb_font_get_glyph_v_advance_nil(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph HB_UNUSED, void *user_data HB_UNUSED) hb_font_get_glyph_v_advance_nil() argument
231 hb_font_get_glyph_v_advance_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, void *user_data HB_UNUSED) hb_font_get_glyph_v_advance_default() argument
248 hb_font_get_glyph_h_advances_default(hb_font_t* font, void* font_data HB_UNUSED, unsigned int count, const hb_codepoint_t *first_glyph, unsigned int glyph_stride, hb_position_t *first_advance, unsigned int advance_stride, void *user_data HB_UNUSED) hb_font_get_glyph_h_advances_default() argument
280 hb_font_get_glyph_v_advances_default(hb_font_t* font, void* font_data HB_UNUSED, unsigned int count, const hb_codepoint_t *first_glyph, unsigned int glyph_stride, hb_position_t *first_advance, unsigned int advance_stride, void *user_data HB_UNUSED) hb_font_get_glyph_v_advances_default() argument
323 hb_font_get_glyph_h_origin_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, hb_position_t *x, hb_position_t *y, void *user_data HB_UNUSED) hb_font_get_glyph_h_origin_default() argument
349 hb_font_get_glyph_v_origin_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, hb_position_t *x, hb_position_t *y, void *user_data HB_UNUSED) hb_font_get_glyph_v_origin_default() argument
373 hb_font_get_glyph_h_kerning_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t left_glyph, hb_codepoint_t right_glyph, void *user_data HB_UNUSED) hb_font_get_glyph_h_kerning_default() argument
394 hb_font_get_glyph_v_kerning_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t top_glyph, hb_codepoint_t bottom_glyph, void *user_data HB_UNUSED) hb_font_get_glyph_v_kerning_default() argument
416 hb_font_get_glyph_extents_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, hb_glyph_extents_t *extents, void *user_data HB_UNUSED) hb_font_get_glyph_extents_default() argument
444 hb_font_get_glyph_contour_point_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, unsigned int point_index, hb_position_t *x, hb_position_t *y, void *user_data HB_UNUSED) hb_font_get_glyph_contour_point_default() argument
471 hb_font_get_glyph_name_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, char *name, unsigned int size, void *user_data HB_UNUSED) hb_font_get_glyph_name_default() argument
494 hb_font_get_glyph_from_name_default(hb_font_t *font, void *font_data HB_UNUSED, const char *name, int len, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_font_get_glyph_from_name_default() argument
764 hb_font_get_h_extents(hb_font_t *font, hb_font_extents_t *extents) hb_font_get_h_extents() argument
783 hb_font_get_v_extents(hb_font_t *font, hb_font_extents_t *extents) hb_font_get_v_extents() argument
807 hb_font_get_glyph(hb_font_t *font, hb_codepoint_t unicode, hb_codepoint_t variation_selector, hb_codepoint_t *glyph) hb_font_get_glyph() argument
835 hb_font_get_nominal_glyph(hb_font_t *font, hb_codepoint_t unicode, hb_codepoint_t *glyph) hb_font_get_nominal_glyph() argument
859 hb_font_get_nominal_glyphs(hb_font_t *font, unsigned int count, const hb_codepoint_t *first_unicode, unsigned int unicode_stride, hb_codepoint_t *first_glyph, unsigned int glyph_stride) hb_font_get_nominal_glyphs() argument
887 hb_font_get_variation_glyph(hb_font_t *font, hb_codepoint_t unicode, hb_codepoint_t variation_selector, hb_codepoint_t *glyph) hb_font_get_variation_glyph() argument
908 hb_font_get_glyph_h_advance(hb_font_t *font, hb_codepoint_t glyph) hb_font_get_glyph_h_advance() argument
927 hb_font_get_glyph_v_advance(hb_font_t *font, hb_codepoint_t glyph) hb_font_get_glyph_v_advance() argument
948 hb_font_get_glyph_h_advances(hb_font_t* font, unsigned int count, const hb_codepoint_t *first_glyph, unsigned glyph_stride, hb_position_t *first_advance, unsigned advance_stride) hb_font_get_glyph_h_advances() argument
972 hb_font_get_glyph_v_advances(hb_font_t* font, unsigned int count, const hb_codepoint_t *first_glyph, unsigned glyph_stride, hb_position_t *first_advance, unsigned advance_stride) hb_font_get_glyph_v_advances() argument
997 hb_font_get_glyph_h_origin(hb_font_t *font, hb_codepoint_t glyph, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_h_origin() argument
1020 hb_font_get_glyph_v_origin(hb_font_t *font, hb_codepoint_t glyph, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_v_origin() argument
1045 hb_font_get_glyph_h_kerning(hb_font_t *font, hb_codepoint_t left_glyph, hb_codepoint_t right_glyph) hb_font_get_glyph_h_kerning() argument
1071 hb_font_get_glyph_v_kerning(hb_font_t *font, hb_codepoint_t top_glyph, hb_codepoint_t bottom_glyph) hb_font_get_glyph_v_kerning() argument
1093 hb_font_get_glyph_extents(hb_font_t *font, hb_codepoint_t glyph, hb_glyph_extents_t *extents) hb_font_get_glyph_extents() argument
1116 hb_font_get_glyph_contour_point(hb_font_t *font, hb_codepoint_t glyph, unsigned int point_index, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_contour_point() argument
1139 hb_font_get_glyph_name(hb_font_t *font, hb_codepoint_t glyph, char *name, unsigned int size) hb_font_get_glyph_name() argument
1163 hb_font_get_glyph_from_name(hb_font_t *font, const char *name, int len, hb_codepoint_t *glyph) hb_font_get_glyph_from_name() argument
1189 hb_font_get_extents_for_direction(hb_font_t *font, hb_direction_t direction, hb_font_extents_t *extents) hb_font_get_extents_for_direction() argument
1212 hb_font_get_glyph_advance_for_direction(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_advance_for_direction() argument
1239 hb_font_get_glyph_advances_for_direction(hb_font_t* font, hb_direction_t direction, unsigned int count, const hb_codepoint_t *first_glyph, unsigned glyph_stride, hb_position_t *first_advance, unsigned advance_stride) hb_font_get_glyph_advances_for_direction() argument
1267 hb_font_get_glyph_origin_for_direction(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_origin_for_direction() argument
1295 hb_font_add_glyph_origin_for_direction(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_add_glyph_origin_for_direction() argument
1323 hb_font_subtract_glyph_origin_for_direction(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_subtract_glyph_origin_for_direction() argument
1349 hb_font_get_glyph_kerning_for_direction(hb_font_t *font, hb_codepoint_t first_glyph, hb_codepoint_t second_glyph, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_kerning_for_direction() argument
1378 hb_font_get_glyph_extents_for_origin(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, hb_glyph_extents_t *extents) hb_font_get_glyph_extents_for_origin() argument
1407 hb_font_get_glyph_contour_point_for_origin(hb_font_t *font, hb_codepoint_t glyph, unsigned int point_index, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_contour_point_for_origin() argument
1433 hb_font_glyph_to_string(hb_font_t *font, hb_codepoint_t glyph, char *s, unsigned int size) hb_font_glyph_to_string() argument
1458 hb_font_glyph_from_string(hb_font_t *font, const char *s, int len, hb_codepoint_t *glyph) hb_font_glyph_from_string() argument
1500 hb_font_t *font; _hb_font_create() local
1531 hb_font_t *font = _hb_font_create (face); hb_font_create() local
1542 _hb_font_adopt_var_coords(hb_font_t *font, int *coords, float *design_coords, unsigned int coords_length) _hb_font_adopt_var_coords() argument
1572 hb_font_t *font = _hb_font_create (parent->face); hb_font_create_sub_font() local
1633 hb_font_reference(hb_font_t *font) hb_font_reference() argument
1649 hb_font_destroy(hb_font_t *font) hb_font_destroy() argument
1683 hb_font_set_user_data(hb_font_t *font, hb_user_data_key_t *key, void * data, hb_destroy_func_t destroy , hb_bool_t replace) hb_font_set_user_data() argument
1705 hb_font_get_user_data(hb_font_t *font, hb_user_data_key_t *key) hb_font_get_user_data() argument
1720 hb_font_make_immutable(hb_font_t *font) hb_font_make_immutable() argument
1742 hb_font_is_immutable(hb_font_t *font) hb_font_is_immutable() argument
1757 hb_font_set_parent(hb_font_t *font, hb_font_t *parent) hb_font_set_parent() argument
1784 hb_font_get_parent(hb_font_t *font) hb_font_get_parent() argument
1799 hb_font_set_face(hb_font_t *font, hb_face_t *face) hb_font_set_face() argument
1828 hb_font_get_face(hb_font_t *font) hb_font_get_face() argument
1847 hb_font_set_funcs(hb_font_t *font, hb_font_funcs_t *klass, void *font_data, hb_destroy_func_t destroy ) hb_font_set_funcs() argument
1884 hb_font_set_funcs_data(hb_font_t *font, void *font_data, hb_destroy_func_t destroy ) hb_font_set_funcs_data() argument
1915 hb_font_set_scale(hb_font_t *font, int x_scale, int y_scale) hb_font_set_scale() argument
1938 hb_font_get_scale(hb_font_t *font, int *x_scale, int *y_scale) hb_font_get_scale() argument
1957 hb_font_set_ppem(hb_font_t *font, unsigned int x_ppem, unsigned int y_ppem) hb_font_set_ppem() argument
1979 hb_font_get_ppem(hb_font_t *font, unsigned int *x_ppem, unsigned int *y_ppem) hb_font_get_ppem() argument
2000 hb_font_set_ptem(hb_font_t *font, float ptem) hb_font_set_ptem() argument
2021 hb_font_get_ptem(hb_font_t *font) hb_font_get_ptem() argument
2042 hb_font_set_variations(hb_font_t *font, const hb_variation_t *variations, unsigned int variations_length) hb_font_set_variations() argument
2097 hb_font_set_var_coords_design(hb_font_t *font, const float *coords, unsigned int coords_length) hb_font_set_var_coords_design() argument
2131 hb_font_set_var_named_instance(hb_font_t *font, unsigned instance_index) hb_font_set_var_named_instance() argument
2162 hb_font_set_var_coords_normalized(hb_font_t *font, const int *coords, unsigned int coords_length) hb_font_set_var_coords_normalized() argument
2210 hb_font_get_var_coords_normalized(hb_font_t *font, unsigned int *length) hb_font_get_var_coords_normalized() argument
2233 hb_font_get_var_coords_design(hb_font_t *font, unsigned int *length) hb_font_get_var_coords_design() argument
2306 hb_font_get_nominal_glyph_trampoline(hb_font_t *font, void *font_data, hb_codepoint_t unicode, hb_codepoint_t *glyph, void *user_data) hb_font_get_nominal_glyph_trampoline() argument
2317 hb_font_get_variation_glyph_trampoline(hb_font_t *font, void *font_data, hb_codepoint_t unicode, hb_codepoint_t variation_selector, hb_codepoint_t *glyph, void *user_data) hb_font_get_variation_glyph_trampoline() argument
[all...]
H A Dhb-font.h57 * working on #hb_font_t font objects.
61 * their own replacements for the individual font functions, as
100 /* font and glyph extents */
108 * Font-wide extent values, measured in font units.
136 * Glyph extent values, measured in font units.
151 * @font: #hb_font_t to work upon
152 * @font_data: @font user data pointer
153 * @extents: (out): The font extents retrieved
156 * This method should retrieve the extents for a font.
159 typedef hb_bool_t (*hb_font_get_font_extents_func_t) (hb_font_t *font, voi
[all...]
H A Dhb-ot-math.cc44 * the font data necessary for typesetting OpenType Math layout.
71 * @font: #hb_font_t to work upon
87 hb_ot_math_get_constant (hb_font_t *font, in hb_ot_math_get_constant() argument
90 return font->face->table.MATH->get_constant(constant, font); in hb_ot_math_get_constant()
95 * @font: #hb_font_t to work upon
106 hb_ot_math_get_glyph_italics_correction (hb_font_t *font, in hb_ot_math_get_glyph_italics_correction() argument
109 return font->face->table.MATH->get_glyph_info().get_italics_correction (glyph, font); in hb_ot_math_get_glyph_italics_correction()
114 * @font
132 hb_ot_math_get_glyph_top_accent_attachment(hb_font_t *font, hb_codepoint_t glyph) hb_ot_math_get_glyph_top_accent_attachment() argument
176 hb_ot_math_get_glyph_kerning(hb_font_t *font, hb_codepoint_t glyph, hb_ot_math_kern_t kern, hb_position_t correction_height) hb_ot_math_get_glyph_kerning() argument
211 hb_ot_math_get_glyph_variants(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, unsigned int start_offset, unsigned int *variants_count, hb_ot_math_glyph_variant_t *variants ) hb_ot_math_get_glyph_variants() argument
243 hb_ot_math_get_min_connector_overlap(hb_font_t *font, hb_direction_t direction) hb_ot_math_get_min_connector_overlap() argument
275 hb_ot_math_get_glyph_assembly(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, unsigned int start_offset, unsigned int *parts_count, hb_ot_math_glyph_part_t *parts, hb_position_t *italics_correction ) hb_ot_math_get_glyph_assembly() argument
[all...]
H A Dhb-ft.cc36 #include "hb-font.hh"
54 * font data.
67 * would work fine. However, we also abuse this API for performing in font-space,
75 * - In the future, we should add constructors to create fonts in font space?
133 * @font: #hb_font_t to work upon
144 hb_ft_font_set_load_flags (hb_font_t *font, int load_flags) in hb_ft_font_set_load_flags() argument
146 if (hb_object_is_immutable (font)) in hb_ft_font_set_load_flags()
149 if (unlikely (font->destroy != (hb_destroy_func_t) _hb_ft_font_destroy)) in hb_ft_font_set_load_flags()
152 hb_ft_font_t *ft_font = (hb_ft_font_t *) font->user_data; in hb_ft_font_set_load_flags()
159 * @font
171 hb_ft_font_get_load_flags(hb_font_t *font) hb_ft_font_get_load_flags() argument
193 hb_ft_font_get_face(hb_font_t *font) hb_ft_font_get_face() argument
214 hb_ft_font_lock_face(hb_font_t *font) hb_ft_font_lock_face() argument
235 hb_ft_font_unlock_face(hb_font_t *font) hb_ft_font_unlock_face() argument
324 hb_ft_get_glyph_h_advances(hb_font_t* font, void* font_data, unsigned count, const hb_codepoint_t *first_glyph, unsigned glyph_stride, hb_position_t *first_advance, unsigned advance_stride, void *user_data HB_UNUSED) hb_ft_get_glyph_h_advances() argument
611 _hb_ft_font_set_funcs(hb_font_t *font, FT_Face ft_face, bool unref) _hb_ft_font_set_funcs() argument
799 hb_font_t *font; hb_ft_font_create() local
821 hb_ft_font_changed(hb_font_t *font) hb_ft_font_changed() argument
968 hb_ft_font_set_funcs(hb_font_t *font) hb_ft_font_set_funcs() argument
[all...]
H A Dhb-ot-font.cc33 #include "hb-font.hh"
51 * SECTION:hb-ot-font
52 * @title: hb-ot-font
53 * @short_description: OpenType font implementation
63 hb_ot_get_nominal_glyph (hb_font_t *font HB_UNUSED, in hb_ot_get_nominal_glyph()
74 hb_ot_get_nominal_glyphs (hb_font_t *font HB_UNUSED, in hb_ot_get_nominal_glyphs()
90 hb_ot_get_variation_glyph (hb_font_t *font HB_UNUSED, in hb_ot_get_variation_glyph()
102 hb_ot_get_glyph_h_advances (hb_font_t* font, void* font_data, in hb_ot_get_glyph_h_advances() argument
115 *first_advance = font->em_scale_x (hmtx.get_advance (*first_glyph, font)); in hb_ot_get_glyph_h_advances()
122 hb_ot_get_glyph_v_advances(hb_font_t* font, void* font_data, unsigned count, const hb_codepoint_t *first_glyph, unsigned glyph_stride, hb_position_t *first_advance, unsigned advance_stride, void *user_data HB_UNUSED) hb_ot_get_glyph_v_advances() argument
142 hb_ot_get_glyph_v_origin(hb_font_t *font, void *font_data, hb_codepoint_t glyph, hb_position_t *x, hb_position_t *y, void *user_data HB_UNUSED) hb_ot_get_glyph_v_origin() argument
179 hb_ot_get_glyph_extents(hb_font_t *font, void *font_data, hb_codepoint_t glyph, hb_glyph_extents_t *extents, void *user_data HB_UNUSED) hb_ot_get_glyph_extents() argument
235 hb_ot_get_font_h_extents(hb_font_t *font, void *font_data HB_UNUSED, hb_font_extents_t *metrics, void *user_data HB_UNUSED) hb_ot_get_font_h_extents() argument
246 hb_ot_get_font_v_extents(hb_font_t *font, void *font_data HB_UNUSED, hb_font_extents_t *metrics, void *user_data HB_UNUSED) hb_ot_get_font_v_extents() argument
310 hb_ot_font_set_funcs(hb_font_t *font) hb_ot_font_set_funcs() argument
320 _glyf_get_side_bearing_var(hb_font_t *font, hb_codepoint_t glyph, bool is_vertical) _glyf_get_side_bearing_var() argument
326 _glyf_get_advance_var(hb_font_t *font, hb_codepoint_t glyph, bool is_vertical) _glyf_get_advance_var() argument
[all...]
/third_party/skia/third_party/externals/freetype/src/psaux/
H A Dpsfont.c5 * Adobe's code for font instances (body).
108 /* space (font units). */ in cf2_computeDarkening()
137 /* `stemWidthPer1000' will not overflow for a legitimate font */ in cf2_computeDarkening()
241 cf2_font_setup( CF2_Font font, in cf2_font_setup() argument
244 /* pointer to parsed font object */ in cf2_font_setup()
245 PS_Decoder* decoder = font->decoder; in cf2_font_setup()
253 CF2_Fixed boldenX = font->syntheticEmboldeningAmountX; in cf2_font_setup()
254 CF2_Fixed boldenY = font->syntheticEmboldeningAmountY; in cf2_font_setup()
263 font->error = FT_Err_Ok; in cf2_font_setup()
268 if ( font in cf2_font_setup()
[all...]
/third_party/skia/src/ports/skia_ohos/
H A DFontInfo_ohos.h15 * \brief To manage the font information
28 * \param font an object of FontInfo
30 explicit FontInfo(const FontInfo& font) in FontInfo()
31 : familyName(font.familyName), fname(font.fname), index(font.index), in FontInfo()
32 style(font.style), isFixedWidth(font.isFixedWidth), stream(nullptr) in FontInfo()
34 axisSet.axis = font.axisSet.axis; in FontInfo()
35 axisSet.range = font in FontInfo()
[all...]
/third_party/skia/third_party/externals/freetype/src/bdf/
H A Dbdflib.c56 * Default BDF font options.
72 * Builtin BDF font properties.
76 /* List of most properties that might appear in a font. Doesn't include */
227 /* Function type for parsing lines of a BDF font. */
268 bdf_font_t* font; member
844 bdf_font_t* font ) in bdf_create_property()
848 FT_Memory memory = font->memory; in bdf_create_property()
855 if ( ft_hash_str_lookup( name, &(font->proptbl) ) ) in bdf_create_property()
858 if ( FT_QRENEW_ARRAY( font->user_props, in bdf_create_property()
859 font in bdf_create_property()
947 _bdf_add_comment( bdf_font_t* font, char* comment, unsigned long len ) _bdf_add_comment() argument
976 _bdf_set_default_spacing( bdf_font_t* font, bdf_options_t* opts, unsigned long lineno ) _bdf_set_default_spacing() argument
1110 _bdf_add_property( bdf_font_t* font, const char* name, char* value, unsigned long lineno ) _bdf_add_property() argument
1302 bdf_font_t* font; _bdf_parse_glyphs() local
1883 bdf_font_t* font; _bdf_parse_start() local
2375 bdf_get_font_property( bdf_font_t* font, const char* name ) bdf_get_font_property() argument
[all...]
/third_party/skia/src/core/
H A DSkFont_serial.cpp14 // packed int at the beginning of the serialized font:
42 void SkFontPriv::Flatten(const SkFont& font, SkWriteBuffer& buffer) { in Flatten() argument
43 SkASSERT(font.fFlags <= SkFont::kAllFlags); in Flatten()
44 SkASSERT((font.fFlags & ~kMask_For_Flags) == 0); in Flatten()
45 SkASSERT((font.fEdging & ~kMask_For_Edging) == 0); in Flatten()
46 SkASSERT((font.fHinting & ~kMask_For_Hinting) == 0); in Flatten()
49 packed |= font.fFlags << kShift_For_Flags; in Flatten()
50 packed |= font.fEdging << kShift_For_Edging; in Flatten()
51 packed |= font.fHinting << kShift_For_Hinting; in Flatten()
53 if (scalar_is_byte(font in Flatten()
82 Unflatten(SkFont* font, SkReadBuffer& buffer) Unflatten() argument
[all...]
/third_party/python/Lib/tkinter/test/test_tkinter/
H A Dtest_font.py3 from tkinter import font namespace
17 cls.font = font.Font(root=cls.root, name=fontname, exists=True)
19 cls.font = font.Font(root=cls.root, name=fontname, exists=False)
22 options = self.font.configure()
26 self.assertEqual(self.font.cget(key), options[key])
27 self.assertEqual(self.font[key], options[key])
30 self.assertIsInstance(self.font.cget(key), str)
31 self.assertIsInstance(self.font[ke
[all...]
/third_party/skia/tests/
H A DFontTest.cpp18 static SkFont serialize_deserialize(const SkFont& font, skiatest::Reporter* reporter) { in serialize_deserialize() argument
23 SkFontPriv::Flatten(font, wb); in serialize_deserialize()
29 SkASSERT((!font.getTypeface() && count == 0) || in serialize_deserialize()
30 ( font.getTypeface() && count == 1)); in serialize_deserialize()
34 SkASSERT(typeface == font.getTypeface()); in serialize_deserialize()
38 sk_sp<SkTypeface> cloneTypeface = font.refTypeface(); in serialize_deserialize()
58 static void apply_flags(SkFont* font, unsigned flags) { in apply_flags() argument
59 font->setForceAutoHinting(SkToBool(flags & kForceAutoHinting)); in apply_flags()
60 font->setEmbeddedBitmaps( SkToBool(flags & kEmbeddedBitmaps)); in apply_flags()
61 font in apply_flags()
85 SkFont font; DEF_TEST() local
[all...]
H A DTextBlobTest.cpp105 SkFont font; in TestBounds() local
115 builder.allocRun(font, 16, 0, 0, &r1); in TestBounds()
122 builder.allocRunPosH(font, 16, 0, &r1); in TestBounds()
129 builder.allocRunPos(font, 16, &r1); in TestBounds()
139 builder.allocRun(font, 16, 0, 0, &r1); in TestBounds()
140 builder.allocRunPosH(font, 16, 0, &r2); in TestBounds()
141 builder.allocRunPos(font, 16, &r3); in TestBounds()
157 font.setSize(0); in TestBounds()
161 const int glyphCount = font.countText(txt, txtLen, SkTextEncoding::kUTF8); in TestBounds()
162 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, glyphCoun in TestBounds()
174 SkFont font; TestPaintProps() local
228 SkFont font; RunBuilderTest() local
268 AddRun(const SkFont& font, int count, SkTextBlobRunIterator::GlyphPositioning pos, const SkPoint& offset, SkTextBlobBuilder& builder, const SkRect* bounds = nullptr) AddRun() argument
312 SkFont font; DEF_TEST() local
352 SkFont font; add_run() local
478 SkFont font; DEF_TEST() local
[all...]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/
H A DSFLint.java17 package com.google.typography.font.sfntly.sample.sflint;
19 import com.google.typography.font.sfntly.Font;
20 import com.google.typography.font.sfntly.FontFactory;
21 import com.google.typography.font.sfntly.Tag;
22 import com.google.typography.font.sfntly.table.core.HorizontalHeaderTable;
23 import com.google.typography.font.sfntly.table.core.HorizontalMetricsTable;
24 import com.google.typography.font.sfntly.table.core.NameTable;
25 import com.google.typography.font.sfntly.table.core.NameTable.NameEntry;
26 import com.google.typography.font.sfntly.table.core.NameTable.NameId;
27 import com.google.typography.font
97 lintNameTable(Font font) lintNameTable() argument
119 lintWindowsClipping(Font font) lintWindowsClipping() argument
159 lintAdvanceWidths(Font font) lintAdvanceWidths() argument
175 lintCompositeGlyph(Font font, CompositeGlyph glyph, int glyphId) lintCompositeGlyph() argument
197 lintAllGlyphs(Font font) lintAllGlyphs() argument
213 lintOS2Misc(Font font) lintOS2Misc() argument
227 lintFont(Font font) lintFont() argument
[all...]
/third_party/skia/third_party/externals/freetype/src/winfonts/
H A Dwinfnt.c5 * FreeType font driver for Windows FNT/FON files
192 FNT_Font font = face->font; in fnt_font_done() local
195 if ( !font ) in fnt_font_done()
198 if ( font->fnt_frame ) in fnt_font_done()
199 FT_FRAME_RELEASE( font->fnt_frame ); in fnt_font_done()
200 FT_FREE( font->family_name ); in fnt_font_done()
202 FT_FREE( font ); in fnt_font_done()
203 face->font = NULL; in fnt_font_done()
208 fnt_font_load( FNT_Font font, in fnt_font_load() argument
627 FNT_Font font = face->font; fnt_cmap_init() local
746 FNT_Font font; FNT_Face_Init() local
784 FNT_Font font = face->font; FNT_Face_Init() local
1002 FNT_Font font; FNT_Load_Glyph() local
1131 FNT_Font font = ((FNT_Face)face)->font; winfnt_get_header() local
[all...]
/third_party/skia/gm/
H A Dtypeface.cpp30 static void getGlyphPositions(const SkFont& font, const uint16_t glyphs[], in getGlyphPositions() argument
34 font.getWidths(glyphs, count, widths); in getGlyphPositions()
43 const SkFont& font) { in applyKerning()
44 SkScalar scale = font.getSize() / font.getTypefaceOrDefault()->getUnitsPerEm(); in applyKerning()
54 SkScalar x, SkScalar y, const SkFont& font, const SkPaint& paint) { in drawKernText()
55 SkTypeface* face = font.getTypefaceOrDefault(); in drawKernText()
57 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, x, y, font, paint); in drawKernText()
63 int glyphCount = font.textToGlyphs(text, len, SkTextEncoding::kUTF8, glyphs, len); in drawKernText()
71 canvas->drawSimpleText(text, len, SkTextEncoding::kUTF8, x, y, font, pain in drawKernText()
42 applyKerning(SkPoint pos[], const int32_t adjustments[], int count, const SkFont& font) applyKerning() argument
53 drawKernText(SkCanvas* canvas, const void* text, size_t len, SkScalar x, SkScalar y, const SkFont& font, const SkPaint& paint) drawKernText() argument
121 SkFont font; global() variable
404 SkFont font; DEF_SIMPLE_GM() local
[all...]
H A Ddftext.cpp79 SkFont font(ToolUtils::create_portable_typeface("serif", SkFontStyle()));
80 font.setSubpixel(true);
92 font.setSize(textSizes[i]);
93 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, 0, 0, font, paint);
94 y += font.getMetrics(nullptr)*scales[i];
106 font.setSize(SkIntToScalar(ps));
107 canvas->drawSimpleText(text, textLen, SkTextEncoding::kUTF8, rotX, rotY, font, paint);
108 rotY += font.getMetrics(nullptr);
113 font.setEdging(SkFont::Edging::kSubpixelAntiAlias);
122 font
[all...]
H A Dfontmgr.cpp38 SkScalar y, const SkFont& font) { in drawString()
39 canvas->drawString(text, x, y, font, SkPaint()); in drawString()
40 return x + font.measureText(text.c_str(), text.size(), SkTextEncoding::kUTF8); in drawString()
47 SkFont font = origFont; in drawCharacter() local
53 font.setTypeface(typeface); in drawCharacter()
54 x = drawString(canvas, ch, x, y, font) + 20; in drawCharacter()
65 font.setTypeface(fm->legacyMakeTypeface(familyName.c_str(), typeface->fontStyle())); in drawCharacter()
66 return drawString(canvas, ch, x, y, font) + 20; in drawCharacter()
86 SkFont font; variable
87 font
37 drawString(SkCanvas* canvas, const SkString& text, SkScalar x, SkScalar y, const SkFont& font) drawString() argument
135 iterateFamily(SkCanvas* canvas, const SkFont& font, SkFontStyleSet* fset) iterateFamily() argument
152 exploreFamily(SkCanvas* canvas, const SkFont& font, SkFontStyleSet* fset) exploreFamily() argument
172 SkFont font; global() variable
226 show_bounds(SkCanvas* canvas, const SkFont& font, SkScalar x, SkScalar y, SkColor boundsColor, bool labelBounds) show_bounds() argument
329 SkFont font; global() variable
[all...]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/sfnttool/
H A DGlyphCoverage.java17 package com.google.typography.font.tools.sfnttool;
19 import com.google.typography.font.sfntly.Font;
20 import com.google.typography.font.sfntly.Tag;
21 import com.google.typography.font.sfntly.table.core.CMap;
22 import com.google.typography.font.sfntly.table.core.CMap.CMapFormat;
23 import com.google.typography.font.sfntly.table.core.CMapTable;
24 import com.google.typography.font.sfntly.table.truetype.CompositeGlyph;
25 import com.google.typography.font.sfntly.table.truetype.Glyph;
26 import com.google.typography.font.sfntly.table.truetype.Glyph.GlyphType;
27 import com.google.typography.font
45 getGlyphCoverage(Font font, String string) getGlyphCoverage() argument
61 touchGlyph(Font font, Set<Integer> coverage, int glyphId) touchGlyph() argument
88 getGlyph(Font font, int glyphId) getGlyph() argument
[all...]

Completed in 14 milliseconds

12345678910>>...39