Lines Matching refs:glyph
67 hb_codepoint_t *glyph, in hb_ft_get_glyph() argument
75 *glyph = FT_Face_GetCharVariantIndex (ft_face, unicode, variation_selector); in hb_ft_get_glyph()
76 if (*glyph) in hb_ft_get_glyph()
81 *glyph = FT_Get_Char_Index (ft_face, unicode); in hb_ft_get_glyph()
82 return *glyph != 0; in hb_ft_get_glyph()
88 hb_codepoint_t glyph, in hb_ft_get_glyph_h_advance() argument
95 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_h_advance()
104 hb_codepoint_t glyph, in hb_ft_get_glyph_v_advance() argument
111 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_v_advance()
122 hb_codepoint_t glyph HB_UNUSED, in hb_ft_get_glyph_h_origin()
134 hb_codepoint_t glyph, in hb_ft_get_glyph_v_origin() argument
142 if (unlikely (FT_Load_Glyph (ft_face, glyph, load_flags))) in hb_ft_get_glyph_v_origin()
147 *x = ft_face->glyph->metrics.horiBearingX - ft_face->glyph->metrics.vertBearingX; in hb_ft_get_glyph_v_origin()
148 *y = ft_face->glyph->metrics.horiBearingY - (-ft_face->glyph->metrics.vertBearingY); in hb_ft_get_glyph_v_origin()
184 hb_codepoint_t glyph, in hb_ft_get_glyph_extents() argument
191 if (unlikely (FT_Load_Glyph (ft_face, glyph, load_flags))) in hb_ft_get_glyph_extents()
194 extents->x_bearing = ft_face->glyph->metrics.horiBearingX; in hb_ft_get_glyph_extents()
195 extents->y_bearing = ft_face->glyph->metrics.horiBearingY; in hb_ft_get_glyph_extents()
196 extents->width = ft_face->glyph->metrics.width; in hb_ft_get_glyph_extents()
197 extents->height = -ft_face->glyph->metrics.height; in hb_ft_get_glyph_extents()
204 hb_codepoint_t glyph, in hb_ft_get_glyph_contour_point() argument
213 if (unlikely (FT_Load_Glyph (ft_face, glyph, load_flags))) in hb_ft_get_glyph_contour_point()
216 if (unlikely (ft_face->glyph->format != FT_GLYPH_FORMAT_OUTLINE)) in hb_ft_get_glyph_contour_point()
219 if (unlikely (point_index >= (unsigned int) ft_face->glyph->outline.n_points)) in hb_ft_get_glyph_contour_point()
222 *x = ft_face->glyph->outline.points[point_index].x; in hb_ft_get_glyph_contour_point()
223 *y = ft_face->glyph->outline.points[point_index].y; in hb_ft_get_glyph_contour_point()
231 hb_codepoint_t glyph, in hb_ft_get_glyph_name() argument
237 hb_bool_t ret = !FT_Get_Glyph_Name (ft_face, glyph, name, size); in hb_ft_get_glyph_name()
248 hb_codepoint_t *glyph, in hb_ft_get_glyph_from_name() argument
254 *glyph = FT_Get_Name_Index (ft_face, (FT_String *) name); in hb_ft_get_glyph_from_name()
261 *glyph = FT_Get_Name_Index (ft_face, buf); in hb_ft_get_glyph_from_name()
264 return *glyph != 0; in hb_ft_get_glyph_from_name()