[harfbuzz.global.ftFontCreateReferenced] on it. HarfBuzz assumes size is always set and will access size member of FT_Face unconditionally.</note>
This is the preferred variant of the hb_ft_font_create* function family, because it calls FT_Reference_Face() on ft_face, ensuring that ft_face remains alive as long as the resulting #hb_font_t font object remains alive.
Use this version unless you know you have good reasons not to.
Parameters
ftFace | FT_Face to work upon |
Returns
the new #hb_font_t font object