/third_party/skia/third_party/externals/harfbuzz/test/api/ |
D | test-ot-extents-cff.c | 42 hb_glyph_extents_t extents; in test_extents_cff1() local 43 hb_bool_t result = hb_font_get_glyph_extents (font, 1, &extents); in test_extents_cff1() 46 g_assert_cmpint (extents.x_bearing, ==, 52); in test_extents_cff1() 47 g_assert_cmpint (extents.y_bearing, ==, 498); in test_extents_cff1() 48 g_assert_cmpint (extents.width, ==, 381); in test_extents_cff1() 49 g_assert_cmpint (extents.height, ==, -510); in test_extents_cff1() 60 hb_bool_t result_j = hb_font_get_glyph_extents (font_j, 3, &extents); in test_extents_cff1() 63 g_assert_cmpint (extents.x_bearing, ==, 34); in test_extents_cff1() 64 g_assert_cmpint (extents.y_bearing, ==, 840); in test_extents_cff1() 65 g_assert_cmpint (extents.width, ==, 920); in test_extents_cff1() [all …]
|
D | test-ot-metrics-tt-var.c | 42 hb_glyph_extents_t extents; in test_extents_tt_var() local 43 hb_bool_t result = hb_font_get_glyph_extents (font, 2, &extents); in test_extents_tt_var() 46 g_assert_cmpint (extents.x_bearing, ==, 10); in test_extents_tt_var() 47 g_assert_cmpint (extents.y_bearing, ==, 846); in test_extents_tt_var() 48 g_assert_cmpint (extents.width, ==, 500); in test_extents_tt_var() 49 g_assert_cmpint (extents.height, ==, -846); in test_extents_tt_var() 53 result = hb_font_get_glyph_extents (font, 2, &extents); in test_extents_tt_var() 56 g_assert_cmpint (extents.x_bearing, ==, 0); in test_extents_tt_var() 57 g_assert_cmpint (extents.y_bearing, ==, 874); in test_extents_tt_var() 58 g_assert_cmpint (extents.width, ==, 551); in test_extents_tt_var() [all …]
|
D | test-ot-color.c | 411 hb_glyph_extents_t extents; in test_hb_ot_color_png() local 418 hb_font_get_glyph_extents (sbix_font, 0, &extents); in test_hb_ot_color_png() 419 g_assert_cmpint (extents.x_bearing, ==, 0); in test_hb_ot_color_png() 420 g_assert_cmpint (extents.y_bearing, ==, 0); in test_hb_ot_color_png() 421 g_assert_cmpint (extents.width, ==, 0); in test_hb_ot_color_png() 422 g_assert_cmpint (extents.height, ==, 0); in test_hb_ot_color_png() 429 hb_font_get_glyph_extents (sbix_font, 1, &extents); in test_hb_ot_color_png() 430 g_assert_cmpint (extents.x_bearing, ==, 0); in test_hb_ot_color_png() 431 g_assert_cmpint (extents.y_bearing, ==, 800); in test_hb_ot_color_png() 432 g_assert_cmpint (extents.width, ==, 800); in test_hb_ot_color_png() [all …]
|
/third_party/harfbuzz/test/api/ |
D | test-ot-extents-cff.c | 42 hb_glyph_extents_t extents; in test_extents_cff1() local 43 hb_bool_t result = hb_font_get_glyph_extents (font, 1, &extents); in test_extents_cff1() 46 g_assert_cmpint (extents.x_bearing, ==, 52); in test_extents_cff1() 47 g_assert_cmpint (extents.y_bearing, ==, 498); in test_extents_cff1() 48 g_assert_cmpint (extents.width, ==, 381); in test_extents_cff1() 49 g_assert_cmpint (extents.height, ==, -510); in test_extents_cff1() 60 hb_bool_t result_j = hb_font_get_glyph_extents (font_j, 3, &extents); in test_extents_cff1() 63 g_assert_cmpint (extents.x_bearing, ==, 34); in test_extents_cff1() 64 g_assert_cmpint (extents.y_bearing, ==, 840); in test_extents_cff1() 65 g_assert_cmpint (extents.width, ==, 920); in test_extents_cff1() [all …]
|
D | test-ot-metrics-tt-var.c | 42 hb_glyph_extents_t extents; in test_extents_tt_var() local 43 hb_bool_t result = hb_font_get_glyph_extents (font, 2, &extents); in test_extents_tt_var() 46 g_assert_cmpint (extents.x_bearing, ==, 10); in test_extents_tt_var() 47 g_assert_cmpint (extents.y_bearing, ==, 846); in test_extents_tt_var() 48 g_assert_cmpint (extents.width, ==, 500); in test_extents_tt_var() 49 g_assert_cmpint (extents.height, ==, -846); in test_extents_tt_var() 53 result = hb_font_get_glyph_extents (font, 2, &extents); in test_extents_tt_var() 56 g_assert_cmpint (extents.x_bearing, ==, 0); in test_extents_tt_var() 57 g_assert_cmpint (extents.y_bearing, ==, 874); in test_extents_tt_var() 58 g_assert_cmpint (extents.width, ==, 551); in test_extents_tt_var() [all …]
|
D | test-ot-color.c | 411 hb_glyph_extents_t extents; in test_hb_ot_color_png() local 418 hb_font_get_glyph_extents (sbix_font, 0, &extents); in test_hb_ot_color_png() 419 g_assert_cmpint (extents.x_bearing, ==, 0); in test_hb_ot_color_png() 420 g_assert_cmpint (extents.y_bearing, ==, 0); in test_hb_ot_color_png() 421 g_assert_cmpint (extents.width, ==, 0); in test_hb_ot_color_png() 422 g_assert_cmpint (extents.height, ==, 0); in test_hb_ot_color_png() 429 hb_font_get_glyph_extents (sbix_font, 1, &extents); in test_hb_ot_color_png() 430 g_assert_cmpint (extents.x_bearing, ==, 0); in test_hb_ot_color_png() 431 g_assert_cmpint (extents.y_bearing, ==, 800); in test_hb_ot_color_png() 432 g_assert_cmpint (extents.width, ==, 800); in test_hb_ot_color_png() [all …]
|
/third_party/flutter/skia/third_party/externals/harfbuzz/test/api/ |
D | test-ot-extents-cff.c | 42 hb_glyph_extents_t extents; in test_extents_cff1() local 43 hb_bool_t result = hb_font_get_glyph_extents (font, 1, &extents); in test_extents_cff1() 46 g_assert_cmpint (extents.x_bearing, ==, 52); in test_extents_cff1() 47 g_assert_cmpint (extents.y_bearing, ==, 498); in test_extents_cff1() 48 g_assert_cmpint (extents.width, ==, 381); in test_extents_cff1() 49 g_assert_cmpint (extents.height, ==, -510); in test_extents_cff1() 60 hb_bool_t result_j = hb_font_get_glyph_extents (font_j, 3, &extents); in test_extents_cff1() 63 g_assert_cmpint (extents.x_bearing, ==, 34); in test_extents_cff1() 64 g_assert_cmpint (extents.y_bearing, ==, 840); in test_extents_cff1() 65 g_assert_cmpint (extents.width, ==, 920); in test_extents_cff1() [all …]
|
D | test-ot-color.c | 409 hb_glyph_extents_t extents; in test_hb_ot_color_png() local 416 hb_font_get_glyph_extents (sbix_font, 0, &extents); in test_hb_ot_color_png() 417 g_assert_cmpint (extents.x_bearing, ==, 0); in test_hb_ot_color_png() 418 g_assert_cmpint (extents.y_bearing, ==, 0); in test_hb_ot_color_png() 419 g_assert_cmpint (extents.width, ==, 0); in test_hb_ot_color_png() 420 g_assert_cmpint (extents.height, ==, 0); in test_hb_ot_color_png() 427 hb_font_get_glyph_extents (sbix_font, 1, &extents); in test_hb_ot_color_png() 428 g_assert_cmpint (extents.x_bearing, ==, 0); in test_hb_ot_color_png() 429 g_assert_cmpint (extents.y_bearing, ==, 0); in test_hb_ot_color_png() 430 g_assert_cmpint (extents.width, ==, 800); in test_hb_ot_color_png() [all …]
|
/third_party/harfbuzz/perf/ |
D | perf-extents.hh | 11 static void extents (benchmark::State &state, const char *font_path, bool is_var, backend_t backend) in extents() function 39 hb_glyph_extents_t extents; in extents() local 42 hb_font_get_glyph_extents (font, gid, &extents); in extents() 67 BENCHMARK_CAPTURE (extents, cff - ot - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f… 68 BENCHMARK_CAPTURE (extents, cff - ft - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f… 69 BENCHMARK_CAPTURE (extents, cff - tp - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f… 71 BENCHMARK_CAPTURE (extents, cff2 - ot - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa… 72 BENCHMARK_CAPTURE (extents, cff2 - ft - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa… 73 BENCHMARK_CAPTURE (extents, cff2 - tp - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa… 75 BENCHMARK_CAPTURE (extents, cff2/vf - ot - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf",… [all …]
|
/third_party/skia/third_party/externals/harfbuzz/perf/ |
D | perf-extents.hh | 11 static void extents (benchmark::State &state, const char *font_path, bool is_var, backend_t backend) in extents() function 39 hb_glyph_extents_t extents; in extents() local 42 hb_font_get_glyph_extents (font, gid, &extents); in extents() 67 BENCHMARK_CAPTURE (extents, cff - ot - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f… 68 BENCHMARK_CAPTURE (extents, cff - ft - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f… 69 BENCHMARK_CAPTURE (extents, cff - tp - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f… 71 BENCHMARK_CAPTURE (extents, cff2 - ot - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa… 72 BENCHMARK_CAPTURE (extents, cff2 - ft - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa… 73 BENCHMARK_CAPTURE (extents, cff2 - tp - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa… 75 BENCHMARK_CAPTURE (extents, cff2/vf - ot - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf",… [all …]
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | test-ot-color.cc | 146 cairo_text_extents_t extents; in layered_glyph_dump() local 156 cairo_glyph_extents (cr, glyphs, num_layers, &extents); in layered_glyph_dump() 163 extents.width += extents.width / 10; in layered_glyph_dump() 164 extents.height += extents.height / 10; in layered_glyph_dump() 165 extents.x_bearing -= extents.width / 20; in layered_glyph_dump() 166 extents.y_bearing -= extents.height / 20; in layered_glyph_dump() 183 cairo_surface_t *surface = cairo_svg_surface_create (output_path, extents.width, extents.height); in layered_glyph_dump() 201 glyph.x = -extents.x_bearing; in layered_glyph_dump() 202 glyph.y = -extents.y_bearing; in layered_glyph_dump() 223 cairo_text_extents_t extents; in dump_glyphs() local [all …]
|
D | hb-font.hh | 195 hb_bool_t get_font_h_extents (hb_font_extents_t *extents) in get_font_h_extents() 197 memset (extents, 0, sizeof (*extents)); in get_font_h_extents() 199 extents, in get_font_h_extents() 202 hb_bool_t get_font_v_extents (hb_font_extents_t *extents) in get_font_v_extents() 204 memset (extents, 0, sizeof (*extents)); in get_font_v_extents() 206 extents, in get_font_v_extents() 329 hb_glyph_extents_t *extents) in get_glyph_extents() 331 memset (extents, 0, sizeof (*extents)); in get_glyph_extents() 334 extents, in get_glyph_extents() 372 void get_h_extents_with_fallback (hb_font_extents_t *extents) in get_h_extents_with_fallback() [all …]
|
D | hb-ot-color-sbix-table.hh | 152 hb_glyph_extents_t *extents) const in get_extents() 155 return get_png_extents (font, glyph, extents); in get_extents() 224 hb_glyph_extents_t *extents) const in get_png_extents() 237 extents->x_bearing = x_offset; in get_png_extents() 238 extents->y_bearing = y_offset; in get_png_extents() 239 extents->width = png.IHDR.width; in get_png_extents() 240 extents->height = png.IHDR.height; in get_png_extents() 246 extents->x_bearing = roundf (extents->x_bearing * scale); in get_png_extents() 247 extents->y_bearing = roundf (extents->y_bearing * scale); in get_png_extents() 248 extents->width = roundf (extents->width * scale); in get_png_extents() [all …]
|
D | hb-ot-font.cc | 159 hb_glyph_extents_t extents = {0}; in hb_ot_get_glyph_v_origin() local 160 if (ot_face->glyf->get_extents (glyph, &extents)) in hb_ot_get_glyph_v_origin() 164 *y = font->em_scale_y (extents.y_bearing + tsb); in hb_ot_get_glyph_v_origin() 179 hb_glyph_extents_t *extents, in hb_ot_get_glyph_extents() argument 186 if (!ret) ret = ot_face->sbix->get_extents (font, glyph, extents); in hb_ot_get_glyph_extents() 188 if (!ret) ret = ot_face->glyf->get_extents (glyph, extents); in hb_ot_get_glyph_extents() 190 if (!ret) ret = ot_face->cff1->get_extents (glyph, extents); in hb_ot_get_glyph_extents() 191 if (!ret) ret = ot_face->cff2->get_extents (font, glyph, extents); in hb_ot_get_glyph_extents() 194 if (!ret) ret = ot_face->CBDT->get_extents (font, glyph, extents); in hb_ot_get_glyph_extents() 198 extents->x_bearing = font->em_scale_x (extents->x_bearing); in hb_ot_get_glyph_extents() [all …]
|
D | hb-ot-cff2-table.cc | 102 hb_glyph_extents_t *extents) const in get_extents() 123 extents->width = 0; in get_extents() 124 extents->x_bearing = 0; in get_extents() 128 extents->x_bearing = (int32_t)param.min_x.floor (); in get_extents() 129 extents->width = (int32_t)param.max_x.ceil () - extents->x_bearing; in get_extents() 133 extents->height = 0; in get_extents() 134 extents->y_bearing = 0; in get_extents() 138 extents->y_bearing = (int32_t)param.max_y.ceil (); in get_extents() 139 extents->height = (int32_t)param.min_y.floor () - extents->y_bearing; in get_extents()
|
D | hb-ot-color-cbdt-table.hh | 54 void get_extents (hb_glyph_extents_t *extents) const in get_extents() 56 extents->x_bearing = bearingX; in get_extents() 57 extents->y_bearing = bearingY; in get_extents() 58 extents->width = width; in get_extents() 59 extents->height = - (hb_position_t) height; in get_extents() 169 bool get_extents (hb_glyph_extents_t *extents HB_UNUSED) const in get_extents() 212 bool get_extents (hb_glyph_extents_t *extents, in get_extents() 215 return (base+offsetToSubtable).get_extents (extents); in get_extents() 400 hb_glyph_extents_t *extents) const in get_extents() 408 if (subtable_record->get_extents (extents, base)) in get_extents() [all …]
|
D | hb-font.cc | 57 hb_font_extents_t *extents, in hb_font_get_font_h_extents_nil() argument 60 memset (extents, 0, sizeof (*extents)); in hb_font_get_font_h_extents_nil() 66 hb_font_extents_t *extents, in hb_font_get_font_h_extents_default() argument 69 hb_bool_t ret = font->parent->get_font_h_extents (extents); in hb_font_get_font_h_extents_default() 71 extents->ascender = font->parent_scale_y_distance (extents->ascender); in hb_font_get_font_h_extents_default() 72 extents->descender = font->parent_scale_y_distance (extents->descender); in hb_font_get_font_h_extents_default() 73 extents->line_gap = font->parent_scale_y_distance (extents->line_gap); in hb_font_get_font_h_extents_default() 81 hb_font_extents_t *extents, in hb_font_get_font_v_extents_nil() argument 84 memset (extents, 0, sizeof (*extents)); in hb_font_get_font_v_extents_nil() 90 hb_font_extents_t *extents, in hb_font_get_font_v_extents_default() argument [all …]
|
/third_party/harfbuzz/src/ |
D | hb-font.hh | 198 hb_bool_t get_font_h_extents (hb_font_extents_t *extents) in get_font_h_extents() 200 memset (extents, 0, sizeof (*extents)); in get_font_h_extents() 202 extents, in get_font_h_extents() 205 hb_bool_t get_font_v_extents (hb_font_extents_t *extents) in get_font_v_extents() 207 memset (extents, 0, sizeof (*extents)); in get_font_v_extents() 209 extents, in get_font_v_extents() 332 hb_glyph_extents_t *extents) in get_glyph_extents() 334 memset (extents, 0, sizeof (*extents)); in get_glyph_extents() 337 extents, in get_glyph_extents() 375 void get_h_extents_with_fallback (hb_font_extents_t *extents) in get_h_extents_with_fallback() [all …]
|
D | hb-ot-color-sbix-table.hh | 216 hb_glyph_extents_t *extents) const in get_extents() 219 return get_png_extents (font, glyph, extents); in get_extents() 288 hb_glyph_extents_t *extents) const in get_png_extents() 307 extents->x_bearing = x_offset; in get_png_extents() 308 extents->y_bearing = png.IHDR.height + y_offset; in get_png_extents() 309 extents->width = png.IHDR.width; in get_png_extents() 310 extents->height = -1 * png.IHDR.height; in get_png_extents() 316 extents->x_bearing = font->em_scalef_x (extents->x_bearing * scale); in get_png_extents() 317 extents->y_bearing = font->em_scalef_y (extents->y_bearing * scale); in get_png_extents() 318 extents->width = font->em_scalef_x (extents->width * scale); in get_png_extents() [all …]
|
D | hb-font.cc | 70 hb_font_extents_t *extents, in hb_font_get_font_h_extents_nil() argument 73 memset (extents, 0, sizeof (*extents)); in hb_font_get_font_h_extents_nil() 80 hb_font_extents_t *extents, in hb_font_get_font_h_extents_default() argument 83 hb_bool_t ret = font->parent->get_font_h_extents (extents); in hb_font_get_font_h_extents_default() 85 extents->ascender = font->parent_scale_y_distance (extents->ascender); in hb_font_get_font_h_extents_default() 86 extents->descender = font->parent_scale_y_distance (extents->descender); in hb_font_get_font_h_extents_default() 87 extents->line_gap = font->parent_scale_y_distance (extents->line_gap); in hb_font_get_font_h_extents_default() 95 hb_font_extents_t *extents, in hb_font_get_font_v_extents_nil() argument 98 memset (extents, 0, sizeof (*extents)); in hb_font_get_font_v_extents_nil() 105 hb_font_extents_t *extents, in hb_font_get_font_v_extents_default() argument [all …]
|
D | hb-aat-layout-opbd-table.hh | 59 hb_glyph_extents_t *extents, const void *base) const in get_bounds() 65 if (extents) in get_bounds() 66 *extents = { in get_bounds() 93 hb_glyph_extents_t *extents, const void *base) const in get_bounds() 105 if (extents) in get_bounds() 106 *extents = {left, top, right, bottom}; in get_bounds() 132 hb_glyph_extents_t *extents) const in get_bounds() 136 case 0: return u.format0.get_bounds (font, glyph_id, extents, this); in get_bounds() 137 case 1: return u.format1.get_bounds (font, glyph_id, extents, this); in get_bounds()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-font.hh | 198 hb_bool_t get_font_h_extents (hb_font_extents_t *extents) in get_font_h_extents() 200 memset (extents, 0, sizeof (*extents)); in get_font_h_extents() 202 extents, in get_font_h_extents() 205 hb_bool_t get_font_v_extents (hb_font_extents_t *extents) in get_font_v_extents() 207 memset (extents, 0, sizeof (*extents)); in get_font_v_extents() 209 extents, in get_font_v_extents() 334 hb_glyph_extents_t *extents) in get_glyph_extents() 336 memset (extents, 0, sizeof (*extents)); in get_glyph_extents() 339 extents, in get_glyph_extents() 377 void get_h_extents_with_fallback (hb_font_extents_t *extents) in get_h_extents_with_fallback() [all …]
|
D | hb-ot-color-sbix-table.hh | 216 hb_glyph_extents_t *extents) const in get_extents() 219 return get_png_extents (font, glyph, extents); in get_extents() 288 hb_glyph_extents_t *extents) const in get_png_extents() 301 extents->x_bearing = x_offset; in get_png_extents() 302 extents->y_bearing = png.IHDR.height + y_offset; in get_png_extents() 303 extents->width = png.IHDR.width; in get_png_extents() 304 extents->height = -1 * png.IHDR.height; in get_png_extents() 310 extents->x_bearing = font->em_scalef_x (extents->x_bearing * scale); in get_png_extents() 311 extents->y_bearing = font->em_scalef_y (extents->y_bearing * scale); in get_png_extents() 312 extents->width = font->em_scalef_x (extents->width * scale); in get_png_extents() [all …]
|
D | hb-font.cc | 70 hb_font_extents_t *extents, in hb_font_get_font_h_extents_nil() argument 73 memset (extents, 0, sizeof (*extents)); in hb_font_get_font_h_extents_nil() 80 hb_font_extents_t *extents, in hb_font_get_font_h_extents_default() argument 83 hb_bool_t ret = font->parent->get_font_h_extents (extents); in hb_font_get_font_h_extents_default() 85 extents->ascender = font->parent_scale_y_distance (extents->ascender); in hb_font_get_font_h_extents_default() 86 extents->descender = font->parent_scale_y_distance (extents->descender); in hb_font_get_font_h_extents_default() 87 extents->line_gap = font->parent_scale_y_distance (extents->line_gap); in hb_font_get_font_h_extents_default() 95 hb_font_extents_t *extents, in hb_font_get_font_v_extents_nil() argument 98 memset (extents, 0, sizeof (*extents)); in hb_font_get_font_v_extents_nil() 105 hb_font_extents_t *extents, in hb_font_get_font_v_extents_default() argument [all …]
|
D | hb-aat-layout-opbd-table.hh | 59 hb_glyph_extents_t *extents, const void *base) const in get_bounds() 65 if (extents) in get_bounds() 66 *extents = { in get_bounds() 93 hb_glyph_extents_t *extents, const void *base) const in get_bounds() 105 if (extents) in get_bounds() 106 *extents = {left, top, right, bottom}; in get_bounds() 132 hb_glyph_extents_t *extents) const in get_bounds() 136 case 0: return u.format0.get_bounds (font, glyph_id, extents, this); in get_bounds() 137 case 1: return u.format1.get_bounds (font, glyph_id, extents, this); in get_bounds()
|