Function

HarfBuzz-0.0HarfBuzzface_create_or_fail_usingSince 11.0.0

  • A thin wrapper around the face loader functions registered with HarfBuzz. If loader_name is NULL or the empty string, the first available loader is used.

    For example, the FreeType ("ft") loader might be able to load WOFF and WOFF2 files if FreeType is built with those features, whereas the OpenType ("ot") loader will not.

    Parameters

    • blob: blob_t

      HarfBuzz.blob_t to work upon

    • index: number

      The index of the face within blob

    • Optionalloader_name: string

      The name of the loader to use, or NULL

    Returns face_t

    The new face object, or NULL if the loader fails to load the face.

    11.0.0