ftFontSetFuncs

fnvoid ftFontSetFuncs(harfbuzz.font.Font font)

Configures the font-functions structure of the specified #hb_font_t font object to use FreeType font functions.

In particular, you can use this function to configure an existing #hb_face_t face object for use with FreeType font functions even if that #hb_face_t face object was initially created with [harfbuzz.global.faceCreate], and therefore was not initially configured to use FreeType font functions.

An #hb_font_t object created with [harfbuzz.global.ftFontCreate] is preconfigured for FreeType font functions and does not require this function to be used.

Note that if you modify the underlying #hb_font_t after calling this function, you need to call [harfbuzz.global.ftHbFontChanged] to update the underlying FT_Face.

<note>

Note

Internally, this function creates an FT_Face. </note>

Parameters

font#hb_font_t to work upon