Function

HarfBuzz-0.0HarfBuzzft_face_createSince 0.9.2

  • 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 variant of the function does not provide any life-cycle management.

    Most client programs should use hb_ft_face_create_referenced() (or, perhaps, hb_ft_face_create_cached()) instead.

    If you know you have valid reasons not to use hb_ft_face_create_referenced(), then it is the client program's responsibility to destroy ft_face after the HarfBuzz.face_t face object has been destroyed.

    Parameters

    • ft_face: Face

      FT_Face to work upon

    • destroy: destroy_func_t

      A callback to call when the face object is not needed anymore

    Returns face_t

    the new HarfBuzz.face_t face object

    0.9.2