Creates an HarfBuzz.font_t font object from the specified FT_Face.
Note: You must set the face size on ft_face before calling
hb_ft_font_create() on it. HarfBuzz assumes size is always set and will
access size member of FT_Face unconditionally.
This variant of the function does not provide any life-cycle management.
Most client programs should use hb_ft_font_create_referenced()
instead.
If you know you have valid reasons not to use hb_ft_font_create_referenced(),
then it is the client program's responsibility to destroy ft_face
only after the HarfBuzz.font_t font object has been destroyed.
HarfBuzz will use the destroy callback on the HarfBuzz.font_t font object
if it is supplied when you use this function. However, even if destroy
is provided, it is the client program's responsibility to destroy ft_face,
and it is the client program's responsibility to ensure that ft_face is
destroyed only after the HarfBuzz.font_t font object has been destroyed.
Creates an HarfBuzz.font_t font object from the specified FT_Face.
ft_facebefore callinghb_ft_font_create()on it. HarfBuzz assumes size is always set and will accesssizemember of FT_Face unconditionally.This variant of the function does not provide any life-cycle management.
Most client programs should use
hb_ft_font_create_referenced()instead.If you know you have valid reasons not to use
hb_ft_font_create_referenced(), then it is the client program's responsibility to destroyft_faceonly after the HarfBuzz.font_t font object has been destroyed.HarfBuzz will use the
destroycallback on the HarfBuzz.font_t font object if it is supplied when you use this function. However, even ifdestroyis provided, it is the client program's responsibility to destroyft_face, and it is the client program's responsibility to ensure thatft_faceis destroyed only after the HarfBuzz.font_t font object has been destroyed.