17#ifndef ULTRALIGHT_CAPI_FONTFILE_H
18#define ULTRALIGHT_CAPI_FONTFILE_H
A fixed-size container for raw byte data.
bool ulFontFileIsInMemory(ULFontFile font_file)
Whether or not this font file was created from an in-memory buffer.
ULFontFile ulFontFileCreateFromFilePathWithFaceIndex(ULString file_path, int face_index)
Create a font file from an on-disk file path, naming the face within a font collection.
ULFontFile ulFontFileCreateFromBufferWithFaceIndex(ULBuffer buffer, int face_index)
Create a font file from an in-memory buffer, naming the face within a font collection.
ULBuffer ulFontFileGetBuffer(ULFontFile font_file)
Get the in-memory buffer for this font file (if created from a buffer).
unsigned int ulFontFileGetHash(ULFontFile font_file)
Get the unique hash for this font file.
ULString ulFontFileGetFilePath(ULFontFile font_file)
Get the file path for this font file (if created from a file path).
void ulDestroyFontFile(ULFontFile font_file)
Destroy a font file previously created with ulFontFileCreateFromFilePath() or ulFontFileCreateFromBuf...
int ulFontFileGetFaceIndex(ULFontFile font_file)
Get the index of the face within a font collection, or -1 when the library chooses the face.
ULFontFile ulFontFileCreateFromFilePath(ULString file_path)
Create a font file from an on-disk file path.
ULFontFile ulFontFileCreateFromBuffer(ULBuffer buffer)
Create a font file from an in-memory buffer.
Unicode string container (natively UTF-8).
Various defines and utility functions for the C API.
struct C_FontFile * ULFontFile
Opaque handle to a FontFile object.
Definition CAPI_Defines.h:128
struct C_String * ULString
Opaque handle to a String object.
Definition CAPI_Defines.h:96
#define ULExport
Definition CAPI_Defines.h:42
struct C_Buffer * ULBuffer
Opaque handle to a Buffer object.
Definition CAPI_Defines.h:99