Function

HarfBuzz-0.0HarfBuzzface_create_from_file_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

    • file_name: string

      A font filename

    • index: number

      The index of the face within the file

    • Optionalloader_name: string

      The name of the loader to use, or NULL

    Returns face_t

    The new face object, or NULL if the file cannot be read or the loader fails to load the face.

    11.0.0