Function

HarfBuzz-0.0HarfBuzzft_face_create_referencedSince 0.9.38

  • Creates an HarfBuzz.face_t face object from the specified FT_Face.

    Note that this is using the FT_Face object just to get at the underlying font data, and fonts created from the returned HarfBuzz.face_t will use the native HarfBuzz font implementation, unless you call hb_ft_font_set_funcs() on them.

    This is the preferred variant of the hb_ft_face_create* function family, because it calls FT_Reference_Face() on ft_face, ensuring that ft_face remains alive as long as the resulting HarfBuzz.face_t face object remains alive. Also calls FT_Done_Face() when the HarfBuzz.face_t face object is destroyed.

    Use this version unless you know you have good reasons not to.

    Parameters

    • ft_face: Face

      FT_Face to work upon

    Returns face_t

    the new HarfBuzz.face_t face object

    0.9.38