Loading...
Searching...
No Matches
CAPI_FontFile.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * This file is a part of Ultralight. *
3 * *
4 * See <https://ultralig.ht> for licensing and more. *
5 * *
6 * (C) 2024 Ultralight, Inc. *
7 **************************************************************************************************/
8
9///
10/// @file CAPI_FontFile.h
11///
12/// Font file interface.
13///
14/// `#include <Ultralight/CAPI/CAPI_FontFile.h>`
15///
16/// The font file interface represents a font file: either on-disk path or in-memory file contents.
17///
18/// @see ULFontLoader
19///
20#ifndef ULTRALIGHT_CAPI_FONTFILE_H
21#define ULTRALIGHT_CAPI_FONTFILE_H
22
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31///
32/// Create a font file from an on-disk file path.
33///
34/// @note The file path should already exist.
35///
37
38///
39/// Create a font file from an in-memory buffer.
40///
42
43///
44/// Destroy font file
45///
47
48#ifdef __cplusplus
49} // extern "C"
50#endif
51
52#endif // ULTRALIGHT_CAPI_FONTFILE_H
A fixed-size container for raw byte data.
Various defines and utility functions for the C API.
struct C_FontFile * ULFontFile
Definition CAPI_Defines.h:75
struct C_String * ULString
Definition CAPI_Defines.h:65
#define ULExport
Definition CAPI_Defines.h:38
struct C_Buffer * ULBuffer
Definition CAPI_Defines.h:66
ULExport void ulDestroyFontFile(ULFontFile font_file)
Destroy font file.
ULExport ULFontFile ulFontFileCreateFromFilePath(ULString file_path)
Create a font file from an on-disk file path.
ULExport ULFontFile ulFontFileCreateFromBuffer(ULBuffer buffer)
Create a font file from an in-memory buffer.
Unicode string container (natively UTF-8).