Lines Matching defs:ft_face

78   FT_Face ft_face = (FT_Face) font_data;
81 *glyph = FT_Face_GetCharVariantIndex (ft_face, unicode, variation_selector);
85 *glyph = FT_Get_Char_Index (ft_face, unicode);
95 FT_Face ft_face = (FT_Face) font_data;
99 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v)))
114 FT_Face ft_face = (FT_Face) font_data;
118 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v)))
146 FT_Face ft_face = (FT_Face) font_data;
149 if (unlikely (FT_Load_Glyph (ft_face, glyph, load_flags)))
154 *x = ft_face->glyph->metrics.horiBearingX - ft_face->glyph->metrics.vertBearingX;
155 *y = ft_face->glyph->metrics.horiBearingY - (-ft_face->glyph->metrics.vertBearingY);
167 FT_Face ft_face = (FT_Face) font_data;
171 if (FT_Get_Kerning (ft_face, left_glyph, right_glyph, mode, &kerningv))
195 FT_Face ft_face = (FT_Face) font_data;
198 if (unlikely (FT_Load_Glyph (ft_face, glyph, load_flags)))
201 extents->x_bearing = ft_face->glyph->metrics.horiBearingX;
202 extents->y_bearing = ft_face->glyph->metrics.horiBearingY;
203 extents->width = ft_face->glyph->metrics.width;
204 extents->height = -ft_face->glyph->metrics.height;
217 FT_Face ft_face = (FT_Face) font_data;
220 if (unlikely (FT_Load_Glyph (ft_face, glyph, load_flags)))
223 if (unlikely (ft_face->glyph->format != FT_GLYPH_FORMAT_OUTLINE))
226 if (unlikely (point_index >= (unsigned int) ft_face->glyph->outline.n_points))
229 *x = ft_face->glyph->outline.points[point_index].x;
230 *y = ft_face->glyph->outline.points[point_index].y;
242 FT_Face ft_face = (FT_Face) font_data;
244 hb_bool_t ret = !FT_Get_Glyph_Name (ft_face, glyph, name, size);
258 FT_Face ft_face = (FT_Face) font_data;
261 *glyph = FT_Get_Name_Index (ft_face, (FT_String *) name);
268 *glyph = FT_Get_Name_Index (ft_face, buf);
275 if (!FT_Get_Glyph_Name(ft_face, 0, buf, sizeof (buf)) &&
306 FT_Face ft_face = (FT_Face) user_data;
313 error = FT_Load_Sfnt_Table (ft_face, tag, 0, NULL, &length);
321 error = FT_Load_Sfnt_Table (ft_face, tag, 0, buffer, &length);
332 * @ft_face: (destroy destroy) (scope notified):
341 hb_ft_face_create (FT_Face ft_face,
346 if (ft_face->stream->read == NULL) {
349 blob = hb_blob_create ((const char *) ft_face->stream->base,
350 (unsigned int) ft_face->stream->size,
352 ft_face, destroy);
353 face = hb_face_create (blob, ft_face->face_index);
356 face = hb_face_create_for_tables (reference_table, ft_face, destroy);
359 hb_face_set_index (face, ft_face->face_index);
360 hb_face_set_upem (face, ft_face->units_per_EM);
367 * @ft_face:
375 hb_ft_face_create_referenced (FT_Face ft_face)
377 FT_Reference_Face (ft_face);
378 return hb_ft_face_create (ft_face, (hb_destroy_func_t) FT_Done_Face);
382 hb_ft_face_finalize (FT_Face ft_face)
384 hb_face_destroy ((hb_face_t *) ft_face->generic.data);
389 * @ft_face:
397 hb_ft_face_create_cached (FT_Face ft_face)
399 if (unlikely (!ft_face->generic.data || ft_face->generic.finalizer != (FT_Generic_Finalizer) hb_ft_face_finalize))
401 if (ft_face->generic.finalizer)
402 ft_face->generic.finalizer (ft_face);
404 ft_face->generic.data = hb_ft_face_create (ft_face, NULL);
405 ft_face->generic.finalizer = (FT_Generic_Finalizer) hb_ft_face_finalize;
408 return hb_face_reference ((hb_face_t *) ft_face->generic.data);
419 * @ft_face: (destroy destroy) (scope notified):
428 hb_ft_font_create (FT_Face ft_face,
434 face = hb_ft_face_create (ft_face, destroy);
439 ft_face, (hb_destroy_func_t) _do_nothing);
441 (int) (((uint64_t) ft_face->size->metrics.x_scale * (uint64_t) ft_face->units_per_EM + (1<<15)) >> 16),
442 (int) (((uint64_t) ft_face->size->metrics.y_scale * (uint64_t) ft_face->units_per_EM + (1<<15)) >> 16));
445 ft_face->size->metrics.x_ppem,
446 ft_face->size->metrics.y_ppem);
454 * @ft_face:
462 hb_ft_font_create_referenced (FT_Face ft_face)
464 FT_Reference_Face (ft_face);
465 return hb_ft_font_create (ft_face, (hb_destroy_func_t) FT_Done_Face);
507 _release_blob (FT_Face ft_face)
509 hb_blob_destroy ((hb_blob_t *) ft_face->generic.data);
521 FT_Face ft_face = NULL;
526 &ft_face);
534 FT_Select_Charmap (ft_face, FT_ENCODING_UNICODE);
536 FT_Set_Char_Size (ft_face,
547 FT_Set_Transform (ft_face, &matrix, NULL);
550 ft_face->generic.data = blob;
551 ft_face->generic.finalizer = (FT_Generic_Finalizer) _release_blob;
555 ft_face,