Ultralight C API 1.3.0
Loading...
Searching...
No Matches
CAPI_FontFile.h
Go to the documentation of this file.
1/******************************************************************************
2 * This file is a part of Ultralight, an ultra-portable web-browser engine. *
3 * *
4 * See <https://ultralig.ht> for licensing and more. *
5 * *
6 * (C) 2023 Ultralight, Inc. *
7 *****************************************************************************/
8#ifndef ULTRALIGHT_CAPI_FONTFILE_H
9#define ULTRALIGHT_CAPI_FONTFILE_H
10
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19///
20/// Create a font file from an on-disk file path.
21///
22/// @note The file path should already exist.
23///
25
26///
27/// Create a font file from an in-memory buffer.
28///
30
31///
32/// Destroy font file
33///
35
36#ifdef __cplusplus
37} // extern "C"
38#endif
39
40#endif // ULTRALIGHT_CAPI_FONTFILE_H
struct C_FontFile * ULFontFile
Definition CAPI_Defines.h:64
struct C_String * ULString
Definition CAPI_Defines.h:54
#define ULExport
Definition CAPI_Defines.h:27
struct C_Buffer * ULBuffer
Definition CAPI_Defines.h:55
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.