Function

HarfBuzz-0.0HarfBuzzft_face_create_from_blob_or_failSince 11.0.0

  • Creates an HarfBuzz.face_t face object from the specified font blob and face index.

    This is similar in functionality to hb_face_create_from_blob_or_fail(), but uses the FreeType library for loading the font blob. This can be useful, for example, to load WOFF and WOFF2 font data.

    Parameters

    • blob: blob_t

      A blob

    • index: number

      The index of the face within the blob

    Returns face_t

    The new face object, or NULL if loading fails (eg. blob does not contain valid font data).

    11.0.0