Lines Matching refs:ft_face
71 FT_Face ft_face = (FT_Face) font_data; in hb_ft_get_glyph() local
75 *glyph = FT_Face_GetCharVariantIndex (ft_face, unicode, variation_selector); in hb_ft_get_glyph()
81 *glyph = FT_Get_Char_Index (ft_face, unicode); in hb_ft_get_glyph()
91 FT_Face ft_face = (FT_Face) font_data; in hb_ft_get_glyph_h_advance() local
95 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_h_advance()
107 FT_Face ft_face = (FT_Face) font_data; in hb_ft_get_glyph_v_advance() local
111 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_v_advance()
139 FT_Face ft_face = (FT_Face) font_data; in hb_ft_get_glyph_v_origin() local
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()
160 FT_Face ft_face = (FT_Face) font_data; in hb_ft_get_glyph_h_kerning() local
164 if (FT_Get_Kerning (ft_face, left_glyph, right_glyph, mode, &kerningv)) in hb_ft_get_glyph_h_kerning()
188 FT_Face ft_face = (FT_Face) font_data; in hb_ft_get_glyph_extents() local
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()
210 FT_Face ft_face = (FT_Face) font_data; in hb_ft_get_glyph_contour_point() local
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()
235 FT_Face ft_face = (FT_Face) font_data; in hb_ft_get_glyph_name() local
237 hb_bool_t ret = !FT_Get_Glyph_Name (ft_face, glyph, name, size); in hb_ft_get_glyph_name()
251 FT_Face ft_face = (FT_Face) font_data; in hb_ft_get_glyph_from_name() local
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()
290 FT_Face ft_face = (FT_Face) user_data; in reference_table() local
297 error = FT_Load_Sfnt_Table (ft_face, tag, 0, NULL, &length); in reference_table()
305 error = FT_Load_Sfnt_Table (ft_face, tag, 0, buffer, &length); in reference_table()
316 hb_ft_face_create (FT_Face ft_face, in hb_ft_face_create() argument
321 if (ft_face->stream->read == NULL) { in hb_ft_face_create()
324 blob = hb_blob_create ((const char *) ft_face->stream->base, in hb_ft_face_create()
325 (unsigned int) ft_face->stream->size, in hb_ft_face_create()
331 ft_face, destroy); in hb_ft_face_create()
332 face = hb_face_create (blob, ft_face->face_index); in hb_ft_face_create()
335 face = hb_face_create_for_tables (reference_table, ft_face, destroy); in hb_ft_face_create()
338 hb_face_set_index (face, ft_face->face_index); in hb_ft_face_create()
339 hb_face_set_upem (face, ft_face->units_per_EM); in hb_ft_face_create()
345 hb_ft_face_finalize (FT_Face ft_face) in hb_ft_face_finalize() argument
347 hb_face_destroy ((hb_face_t *) ft_face->generic.data); in hb_ft_face_finalize()
351 hb_ft_face_create_cached (FT_Face ft_face) in hb_ft_face_create_cached() argument
353 …if (unlikely (!ft_face->generic.data || ft_face->generic.finalizer != (FT_Generic_Finalizer) hb_ft… in hb_ft_face_create_cached()
355 if (ft_face->generic.finalizer) in hb_ft_face_create_cached()
356 ft_face->generic.finalizer (ft_face); in hb_ft_face_create_cached()
358 ft_face->generic.data = hb_ft_face_create (ft_face, NULL); in hb_ft_face_create_cached()
359 ft_face->generic.finalizer = (FT_Generic_Finalizer) hb_ft_face_finalize; in hb_ft_face_create_cached()
362 return hb_face_reference ((hb_face_t *) ft_face->generic.data); in hb_ft_face_create_cached()
372 hb_ft_font_create (FT_Face ft_face, in hb_ft_font_create() argument
378 face = hb_ft_face_create (ft_face, destroy); in hb_ft_font_create()
383 ft_face, (hb_destroy_func_t) _do_nothing); in hb_ft_font_create()
385 ((uint64_t) ft_face->size->metrics.x_scale * (uint64_t) ft_face->units_per_EM) >> 16, in hb_ft_font_create()
386 ((uint64_t) ft_face->size->metrics.y_scale * (uint64_t) ft_face->units_per_EM) >> 16); in hb_ft_font_create()
388 ft_face->size->metrics.x_ppem, in hb_ft_font_create()
389 ft_face->size->metrics.y_ppem); in hb_ft_font_create()
431 _release_blob (FT_Face ft_face) in _release_blob() argument
433 hb_blob_destroy ((hb_blob_t *) ft_face->generic.data); in _release_blob()
445 FT_Face ft_face = NULL; in hb_ft_font_set_funcs() local
450 &ft_face); in hb_ft_font_set_funcs()
458 FT_Select_Charmap (ft_face, FT_ENCODING_UNICODE); in hb_ft_font_set_funcs()
461 FT_Set_Char_Size (ft_face, in hb_ft_font_set_funcs()
469 ft_face->generic.data = blob; in hb_ft_font_set_funcs()
470 ft_face->generic.finalizer = (FT_Generic_Finalizer) _release_blob; in hb_ft_font_set_funcs()
474 ft_face, in hb_ft_font_set_funcs()