/* This one creates a new hb-face for given ft-face. *Whenthereturnedhb-faceisdestroyed,thedestroy *callbackiscalled(ifnotNULL),withtheft-facepassed *toit. * *Theclientisresponsibletomakesurethatft-faceis *destroyedafterhb-faceisdestroyed. * *Mostoftenyoudon'twantthisfunction.Youshoulduseeither *hb_ft_face_create_cached(),orhb_ft_face_create_referenced(). *Inparticular,ifyouaregoingtopassNULLasdestroy,you *probablyshoulduse(themorerecent)hb_ft_face_create_referenced() *instead.
*/
HB_EXTERN hb_face_t *
hb_ft_face_create (FT_Face ft_face,
hb_destroy_func_t destroy);
/* This version is like hb_ft_face_create(), except that it caches *thehb-faceusingthegenericpointeroftheft-face.Thismeans *thatsubsequentcallstothisfunctionwiththesameft-facewill *returnthesamehb-face(correctlyreferenced). * *Clientisstillresponsibleformakingsurethatft-faceisdestroyed *afterhb-faceis.
*/
HB_EXTERN hb_face_t *
hb_ft_face_create_cached (FT_Face ft_face);
/* This version is like hb_ft_face_create(), except that it calls *FT_Reference_Face()onft-face,assuchkeepingft-facealive *aslongasthehb-faceis. * *Thisisthemostconvenientversiontouse.Useitunlessyouhave *verygoodreasonsnotto.
*/
HB_EXTERN hb_face_t *
hb_ft_face_create_referenced (FT_Face ft_face);
/* See notes on hb_ft_face_create(). Same issues re lifecycle-management
* apply here. Use hb_ft_font_create_referenced() if you can. */
HB_EXTERN hb_font_t *
hb_ft_font_create (FT_Face ft_face,
hb_destroy_func_t destroy);
/* See notes on hb_ft_face_create_referenced() re lifecycle-management
* issues. */
HB_EXTERN hb_font_t *
hb_ft_font_create_referenced (FT_Face ft_face);
HB_EXTERN void
hb_ft_font_set_load_flags (hb_font_t *font, int load_flags);
HB_EXTERN int
hb_ft_font_get_load_flags (hb_font_t *font);
/* Call when size or variations settings on underlying FT_Face changed,
* and you want to update the hb_font_t from it. */
HB_EXTERN void
hb_ft_font_changed (hb_font_t *font);
/* Call when size or variations settings on underlying hb_font_t may have *changed,andyouwanttoupdatetheFT_Facefromit.Thiscallisfast
* if nothing changed on hb_font_t. Returns true if changed. */
HB_EXTERN hb_bool_t
hb_ft_hb_font_changed (hb_font_t *font);
/* Makes an hb_font_t use FreeType internally to implement font functions. *Note:thisinternallycreatesanFT_Face.Useitwhenyoucreateyour
* hb_face_t using hb_face_create(). */
HB_EXTERN void
hb_ft_font_set_funcs (hb_font_t *font);
HB_END_DECLS
#endif/* HB_FT_H */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.