• Home
  • Raw
  • Download

Lines Matching refs:gid

476 		        hb_codepoint_t gid, hb_glyph_extents_t *extents) const  in get_extents()
480 extents->x_bearing = font->em_scale_x (glyf_accelerator.hmtx->get_side_bearing (gid)); in get_extents()
795 int h_delta = (int) header->xMin - glyf_accelerator.hmtx->get_side_bearing (gid); in get_points()
796 int v_orig = (int) header->yMax + glyf_accelerator.vmtx->get_side_bearing (gid); in get_points()
797 unsigned h_adv = glyf_accelerator.hmtx->get_advance (gid); in get_points()
798 unsigned v_adv = glyf_accelerator.vmtx->get_advance (gid); in get_points()
806 if (unlikely (!glyf_accelerator.gvar->apply_deltas_to_points (gid, font, points.as_array ()))) in get_points()
879 return header->get_extents (font, glyf_accelerator, gid, extents); in get_extents()
885 hb_codepoint_t gid_ = (hb_codepoint_t) -1) : bytes (bytes_), gid (gid_), in Glyph()
896 hb_codepoint_t gid; member
941 bool get_points (hb_font_t *font, hb_codepoint_t gid, T consumer) const in get_points()
943 if (gid >= num_glyphs) return false; in get_points()
952 if (unlikely (!glyph_for_gid (gid).get_points (font, *this, all_points, phantom_only))) in get_points()
1029 get_advance_var (hb_font_t *font, hb_codepoint_t gid, bool is_vertical) const in get_advance_var()
1031 if (unlikely (gid >= num_glyphs)) return 0; in get_advance_var()
1037 success = get_points (font, gid, points_aggregator_t (font, nullptr, phantoms)); in get_advance_var()
1040 return is_vertical ? vmtx->get_advance (gid) : hmtx->get_advance (gid); in get_advance_var()
1048 int get_side_bearing_var (hb_font_t *font, hb_codepoint_t gid, bool is_vertical) const in get_side_bearing_var()
1050 if (unlikely (gid >= num_glyphs)) return 0; in get_side_bearing_var()
1055 if (unlikely (!get_points (font, gid, points_aggregator_t (font, &extents, phantoms)))) in get_side_bearing_var()
1056 return is_vertical ? vmtx->get_side_bearing (gid) : hmtx->get_side_bearing (gid); in get_side_bearing_var()
1065 bool get_extents (hb_font_t *font, hb_codepoint_t gid, hb_glyph_extents_t *extents) const in get_extents()
1067 if (unlikely (gid >= num_glyphs)) return false; in get_extents()
1071 return get_points (font, gid, points_aggregator_t (font, extents, nullptr)); in get_extents()
1073 return glyph_for_gid (gid).get_extents (font, *this, extents); in get_extents()
1077 glyph_for_gid (hb_codepoint_t gid, bool needs_padding_removal = false) const in glyph_for_gid()
1079 if (unlikely (gid >= num_glyphs)) return Glyph (); in glyph_for_gid()
1086 start_offset = 2 * offsets[gid]; in glyph_for_gid()
1087 end_offset = 2 * offsets[gid + 1]; in glyph_for_gid()
1092 start_offset = offsets[gid]; in glyph_for_gid()
1093 end_offset = offsets[gid + 1]; in glyph_for_gid()
1100 end_offset - start_offset), gid); in glyph_for_gid()
1105 add_gid_and_children (hb_codepoint_t gid, in add_gid_and_children()
1113 if (gids_to_retain->has (gid)) return operation_count; in add_gid_and_children()
1115 gids_to_retain->add (gid); in add_gid_and_children()
1117 auto it = glyph_for_gid (gid).get_composite_iterator (); in add_gid_and_children()
1245 get_path (hb_font_t *font, hb_codepoint_t gid, draw_helper_t &draw_helper) const in get_path()
1246 { return get_points (font, gid, path_builder_t (font, draw_helper)); } in get_path()