Lines Matching refs:ft_face

75   FT_Face ft_face;  member
85 _hb_ft_font_create (FT_Face ft_face, bool symbol, bool unref) in _hb_ft_font_create() argument
93 ft_font->ft_face = ft_face; in _hb_ft_font_create()
119 _hb_ft_face_destroy (ft_font->ft_face); in _hb_ft_font_destroy()
177 return ft_font->ft_face; in hb_ft_font_get_face()
191 unsigned int g = FT_Get_Char_Index (ft_font->ft_face, unicode); in hb_ft_get_nominal_glyph()
202 g = FT_Get_Char_Index (ft_font->ft_face, 0xF000u + unicode); in hb_ft_get_nominal_glyph()
228 done < count && (*first_glyph = FT_Get_Char_Index (ft_font->ft_face, *first_unicode)); in hb_ft_get_nominal_glyphs()
250 unsigned int g = FT_Face_GetCharVariantIndex (ft_font->ft_face, unicode, variation_selector); in hb_ft_get_variation_glyph()
270 FT_Face ft_face = ft_font->ft_face; in hb_ft_get_glyph_h_advances() local
290 FT_Get_Advance (ft_face, glyph, load_flags, &v); in hb_ft_get_glyph_h_advances()
310 …if (unlikely (FT_Get_Advance (ft_font->ft_face, glyph, ft_font->load_flags | FT_LOAD_VERTICAL_LAYO… in hb_ft_get_glyph_v_advance()
331 FT_Face ft_face = ft_font->ft_face; in hb_ft_get_glyph_v_origin() local
333 if (unlikely (FT_Load_Glyph (ft_face, glyph, ft_font->load_flags))) in hb_ft_get_glyph_v_origin()
338 *x = ft_face->glyph->metrics.horiBearingX - ft_face->glyph->metrics.vertBearingX; in hb_ft_get_glyph_v_origin()
339 *y = ft_face->glyph->metrics.horiBearingY - (-ft_face->glyph->metrics.vertBearingY); in hb_ft_get_glyph_v_origin()
358 FT_Face ft_face = ft_font->ft_face; in hb_ft_get_glyph_extents() local
360 if (unlikely (FT_Load_Glyph (ft_face, glyph, ft_font->load_flags))) in hb_ft_get_glyph_extents()
363 extents->x_bearing = ft_face->glyph->metrics.horiBearingX; in hb_ft_get_glyph_extents()
364 extents->y_bearing = ft_face->glyph->metrics.horiBearingY; in hb_ft_get_glyph_extents()
365 extents->width = ft_face->glyph->metrics.width; in hb_ft_get_glyph_extents()
366 extents->height = -ft_face->glyph->metrics.height; in hb_ft_get_glyph_extents()
391 FT_Face ft_face = ft_font->ft_face; in hb_ft_get_glyph_contour_point() local
393 if (unlikely (FT_Load_Glyph (ft_face, glyph, ft_font->load_flags))) in hb_ft_get_glyph_contour_point()
396 if (unlikely (ft_face->glyph->format != FT_GLYPH_FORMAT_OUTLINE)) in hb_ft_get_glyph_contour_point()
399 if (unlikely (point_index >= (unsigned int) ft_face->glyph->outline.n_points)) in hb_ft_get_glyph_contour_point()
402 *x = ft_face->glyph->outline.points[point_index].x; in hb_ft_get_glyph_contour_point()
403 *y = ft_face->glyph->outline.points[point_index].y; in hb_ft_get_glyph_contour_point()
417 FT_Face ft_face = ft_font->ft_face; in hb_ft_get_glyph_name() local
419 hb_bool_t ret = !FT_Get_Glyph_Name (ft_face, glyph, name, size); in hb_ft_get_glyph_name()
435 FT_Face ft_face = ft_font->ft_face; in hb_ft_get_glyph_from_name() local
438 *glyph = FT_Get_Name_Index (ft_face, (FT_String *) name); in hb_ft_get_glyph_from_name()
445 *glyph = FT_Get_Name_Index (ft_face, buf); in hb_ft_get_glyph_from_name()
452 if (!FT_Get_Glyph_Name(ft_face, 0, buf, sizeof (buf)) && in hb_ft_get_glyph_from_name()
468 FT_Face ft_face = ft_font->ft_face; in hb_ft_get_font_h_extents() local
469 metrics->ascender = FT_MulFix(ft_face->ascender, ft_face->size->metrics.y_scale); in hb_ft_get_font_h_extents()
470 metrics->descender = FT_MulFix(ft_face->descender, ft_face->size->metrics.y_scale); in hb_ft_get_font_h_extents()
471 …metrics->line_gap = FT_MulFix( ft_face->height, ft_face->size->metrics.y_scale ) - (metrics->ascen… in hb_ft_get_font_h_extents()
530 _hb_ft_font_set_funcs (hb_font_t *font, FT_Face ft_face, bool unref) in _hb_ft_font_set_funcs() argument
532 bool symbol = ft_face->charmap && ft_face->charmap->encoding == FT_ENCODING_MS_SYMBOL; in _hb_ft_font_set_funcs()
536 _hb_ft_font_create (ft_face, symbol, unref), in _hb_ft_font_set_funcs()
544 FT_Face ft_face = (FT_Face) user_data; in reference_table() local
551 error = FT_Load_Sfnt_Table (ft_face, tag, 0, nullptr, &length); in reference_table()
559 error = FT_Load_Sfnt_Table (ft_face, tag, 0, buffer, &length); in reference_table()
582 hb_ft_face_create (FT_Face ft_face, in hb_ft_face_create() argument
587 if (!ft_face->stream->read) { in hb_ft_face_create()
590 blob = hb_blob_create ((const char *) ft_face->stream->base, in hb_ft_face_create()
591 (unsigned int) ft_face->stream->size, in hb_ft_face_create()
593 ft_face, destroy); in hb_ft_face_create()
594 face = hb_face_create (blob, ft_face->face_index); in hb_ft_face_create()
597 face = hb_face_create_for_tables (reference_table, ft_face, destroy); in hb_ft_face_create()
600 hb_face_set_index (face, ft_face->face_index); in hb_ft_face_create()
601 hb_face_set_upem (face, ft_face->units_per_EM); in hb_ft_face_create()
616 hb_ft_face_create_referenced (FT_Face ft_face) in hb_ft_face_create_referenced() argument
618 FT_Reference_Face (ft_face); in hb_ft_face_create_referenced()
619 return hb_ft_face_create (ft_face, _hb_ft_face_destroy); in hb_ft_face_create_referenced()
623 hb_ft_face_finalize (FT_Face ft_face) in hb_ft_face_finalize() argument
625 hb_face_destroy ((hb_face_t *) ft_face->generic.data); in hb_ft_face_finalize()
638 hb_ft_face_create_cached (FT_Face ft_face) in hb_ft_face_create_cached() argument
640 …if (unlikely (!ft_face->generic.data || ft_face->generic.finalizer != (FT_Generic_Finalizer) hb_ft… in hb_ft_face_create_cached()
642 if (ft_face->generic.finalizer) in hb_ft_face_create_cached()
643 ft_face->generic.finalizer (ft_face); in hb_ft_face_create_cached()
645 ft_face->generic.data = hb_ft_face_create (ft_face, nullptr); in hb_ft_face_create_cached()
646 ft_face->generic.finalizer = (FT_Generic_Finalizer) hb_ft_face_finalize; in hb_ft_face_create_cached()
649 return hb_face_reference ((hb_face_t *) ft_face->generic.data); in hb_ft_face_create_cached()
664 hb_ft_font_create (FT_Face ft_face, in hb_ft_font_create() argument
670 face = hb_ft_face_create (ft_face, destroy); in hb_ft_font_create()
673 _hb_ft_font_set_funcs (font, ft_face, false); in hb_ft_font_create()
685 FT_Face ft_face = ft_font->ft_face; in hb_ft_font_changed() local
688 …(int) (((uint64_t) ft_face->size->metrics.x_scale * (uint64_t) ft_face->units_per_EM + (1u<<15)) >… in hb_ft_font_changed()
689 …(int) (((uint64_t) ft_face->size->metrics.y_scale * (uint64_t) ft_face->units_per_EM + (1u<<15)) >… in hb_ft_font_changed()
692 ft_face->size->metrics.x_ppem, in hb_ft_font_changed()
693 ft_face->size->metrics.y_ppem); in hb_ft_font_changed()
698 if (!FT_Get_MM_Var (ft_face, &mm_var)) in hb_ft_font_changed()
704 if (!FT_Get_Var_Blend_Coordinates (ft_face, mm_var->num_axis, ft_coords)) in hb_ft_font_changed()
723 FT_Done_MM_Var (ft_face->glyph->library, mm_var); in hb_ft_font_changed()
741 hb_ft_font_create_referenced (FT_Face ft_face) in hb_ft_font_create_referenced() argument
743 FT_Reference_Face (ft_face); in hb_ft_font_create_referenced()
744 return hb_ft_font_create (ft_face, _hb_ft_face_destroy); in hb_ft_font_create_referenced()
791 _release_blob (FT_Face ft_face) in _release_blob() argument
793 hb_blob_destroy ((hb_blob_t *) ft_face->generic.data); in _release_blob()
805 FT_Face ft_face = nullptr; in hb_ft_font_set_funcs() local
810 &ft_face); in hb_ft_font_set_funcs()
818 if (FT_Select_Charmap (ft_face, FT_ENCODING_UNICODE)) in hb_ft_font_set_funcs()
819 FT_Select_Charmap (ft_face, FT_ENCODING_MS_SYMBOL); in hb_ft_font_set_funcs()
821 FT_Set_Char_Size (ft_face, in hb_ft_font_set_funcs()
832 FT_Set_Transform (ft_face, &matrix, nullptr); in hb_ft_font_set_funcs()
845 FT_Set_Var_Blend_Coordinates (ft_face, num_coords, ft_coords); in hb_ft_font_set_funcs()
851 ft_face->generic.data = blob; in hb_ft_font_set_funcs()
852 ft_face->generic.finalizer = (FT_Generic_Finalizer) _release_blob; in hb_ft_font_set_funcs()
854 _hb_ft_font_set_funcs (font, ft_face, true); in hb_ft_font_set_funcs()