docs
Docs
C++ API
C API
Search API
Ctrl K
1.4
2.0
latest
1.4
Ultralight C API
1.4.0
Toggle main menu visibility
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
23
#include <
Ultralight/CAPI/CAPI_Defines.h
>
24
#include <
Ultralight/CAPI/CAPI_String.h
>
25
#include <
Ultralight/CAPI/CAPI_Buffer.h
>
26
27
#ifdef __cplusplus
28
extern
"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
///
36
ULExport
ULFontFile
ulFontFileCreateFromFilePath
(
ULString
file_path);
37
38
///
39
/// Create a font file from an in-memory buffer.
40
///
41
ULExport
ULFontFile
ulFontFileCreateFromBuffer
(
ULBuffer
buffer);
42
43
///
44
/// Destroy font file
45
///
46
ULExport
void
ulDestroyFontFile
(
ULFontFile
font_file);
47
48
#ifdef __cplusplus
49
}
// extern "C"
50
#endif
51
52
#endif
// ULTRALIGHT_CAPI_FONTFILE_H
CAPI_Buffer.h
A fixed-size container for raw byte data.
CAPI_Defines.h
Various defines and utility functions for the C API.
ULFontFile
struct C_FontFile * ULFontFile
Definition
CAPI_Defines.h:75
ULString
struct C_String * ULString
Definition
CAPI_Defines.h:65
ULExport
#define ULExport
Definition
CAPI_Defines.h:38
ULBuffer
struct C_Buffer * ULBuffer
Definition
CAPI_Defines.h:66
ulDestroyFontFile
void ulDestroyFontFile(ULFontFile font_file)
Destroy font file.
ulFontFileCreateFromFilePath
ULFontFile ulFontFileCreateFromFilePath(ULString file_path)
Create a font file from an on-disk file path.
ulFontFileCreateFromBuffer
ULFontFile ulFontFileCreateFromBuffer(ULBuffer buffer)
Create a font file from an in-memory buffer.
CAPI_String.h
Unicode string container (natively UTF-8).
Ultralight
CAPI
CAPI_FontFile.h
Docs
C++ API
C API
Version
1.4
2.0
latest
1.4