• Home
  • Raw
  • Download

Lines Matching refs:gid

399       bool get_extents (hb_font_t *font, hb_codepoint_t gid, hb_glyph_extents_t *extents) const  in get_extents()
403 extents->x_bearing = font->em_scale_x (font->face->table.hmtx->get_side_bearing (gid)); in get_extents()
731 bool get_extents (hb_font_t *font, hb_codepoint_t gid, hb_glyph_extents_t *extents) const in get_extents()
734 return header->get_extents (font, gid, extents); in get_extents()
793 …void init_phantom_points (hb_codepoint_t gid, hb_array_t<contour_point_t> &phantoms /* IN/OUT */) … in init_phantom_points()
795 const Glyph &glyph = glyph_for_gid (gid); in init_phantom_points()
796 int h_delta = (int) glyph.get_header ().xMin - face->table.hmtx->get_side_bearing (gid); in init_phantom_points()
797 int v_orig = (int) glyph.get_header ().yMax + face->table.vmtx->get_side_bearing (gid); in init_phantom_points()
798 unsigned int h_adv = face->table.hmtx->get_advance (gid); in init_phantom_points()
799 unsigned int v_adv = face->table.vmtx->get_advance (gid); in init_phantom_points()
845 bool get_points_var (hb_codepoint_t gid, in get_points_var()
853 const Glyph &glyph = glyph_for_gid (gid); in get_points_var()
856 init_phantom_points (gid, phantoms); in get_points_var()
857 …if (unlikely (!face->table.gvar->apply_deltas_to_points (gid, coords, coord_count, points.as_array… in get_points_var()
909 …bool get_points_bearing_applied (hb_font_t *font, hb_codepoint_t gid, contour_point_vector_t &all_… in get_points_bearing_applied()
911 if (unlikely (!get_points_var (gid, font->coords, font->num_coords, all_points) || in get_points_bearing_applied()
925 bool get_var_extents_and_phantoms (hb_font_t *font, hb_codepoint_t gid, in get_var_extents_and_phantoms()
930 if (!unlikely (get_points_bearing_applied (font, gid, all_points))) return false; in get_var_extents_and_phantoms()
944 bool get_var_metrics (hb_font_t *font, hb_codepoint_t gid, in get_var_metrics()
946 { return get_var_extents_and_phantoms (font, gid, nullptr, &phantoms); } in get_var_metrics()
948 bool get_extents_var (hb_font_t *font, hb_codepoint_t gid, in get_extents_var()
950 { return get_var_extents_and_phantoms (font, gid, extents); } in get_extents_var()
955 unsigned int get_advance_var (hb_font_t *font, hb_codepoint_t gid, in get_advance_var()
963 success = get_var_metrics (font, gid, phantoms); in get_advance_var()
966 return is_vertical ? face->table.vmtx->get_advance (gid) : face->table.hmtx->get_advance (gid); in get_advance_var()
974 int get_side_bearing_var (hb_font_t *font, hb_codepoint_t gid, bool is_vertical) const in get_side_bearing_var()
980 if (unlikely (!get_var_extents_and_phantoms (font, gid, &extents, &phantoms))) in get_side_bearing_var()
981 …rn is_vertical ? face->table.vmtx->get_side_bearing (gid) : face->table.hmtx->get_side_bearing (gi… in get_side_bearing_var()
987 bool get_extents (hb_font_t *font, hb_codepoint_t gid, hb_glyph_extents_t *extents) const in get_extents()
993 return get_extents_var (font, gid, extents); in get_extents()
996 if (unlikely (gid >= num_glyphs)) return false; in get_extents()
998 return glyph_for_gid (gid).get_extents (font, gid, extents); in get_extents()
1002 glyph_for_gid (hb_codepoint_t gid, bool needs_padding_removal = false) const in glyph_for_gid()
1005 if (unlikely (gid >= num_glyphs)) return Glyph (); in glyph_for_gid()
1010 start_offset = 2 * offsets[gid]; in glyph_for_gid()
1011 end_offset = 2 * offsets[gid + 1]; in glyph_for_gid()
1016 start_offset = offsets[gid]; in glyph_for_gid()
1017 end_offset = offsets[gid + 1]; in glyph_for_gid()
1029 add_gid_and_children (hb_codepoint_t gid, hb_set_t *gids_to_retain, in add_gid_and_children()
1034 if (gids_to_retain->has (gid)) return; in add_gid_and_children()
1036 gids_to_retain->add (gid); in add_gid_and_children()
1038 for (auto &item : glyph_for_gid (gid).get_composite_iterator ()) in add_gid_and_children()