Function

HarfBuzz-0.0HarfBuzzface_create_from_file_or_failSince 10.1.0

  • A thin wrapper around hb_blob_create_from_file_or_fail() followed by hb_face_create_or_fail().

    Parameters

    • file_name: string

      A font filename

    • index: number

      The index of the face within the file

    Returns face_t

    The new face object, or NULL if no face is found at the specified index or the file cannot be read.

    10.1.0