Function

HarfBuzz-0.0HarfBuzzft_font_create_referencedSince 0.9.38

  • 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_referenced() on it. HarfBuzz assumes size is always set and will access size member of FT_Face unconditionally.

    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 HarfBuzz.font_t font object remains alive.

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

    Parameters

    • ft_face: Face

      FT_Face to work upon

    Returns font_t

    the new HarfBuzz.font_t font object

    0.9.38