-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.jai
More file actions
29 lines (25 loc) · 754 Bytes
/
module.jai
File metadata and controls
29 lines (25 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#module_parameters(FREETYPE_SUPPORT := false);
#if FREETYPE_SUPPORT
{
#import "freetype-2.12.1";
#if OS == .WINDOWS #load "windows_ft.jai";
#if OS == .MACOS #load "macos_ft.jai";
#if OS == .LINUX #load "linux_ft.jai";
}
else {
#if OS == .WINDOWS #load "windows.jai";
#if OS == .MACOS #load "macos.jai";
#if OS == .LINUX #load "linux.jai";
}
hb_buffer_get_glyph_infos :: (buffer: *hb_buffer_t) -> []hb_glyph_info_t
{
length: u32;
data := hb_buffer_get_glyph_infos(buffer, *length);
return .{length, data};
}
hb_buffer_get_glyph_positions :: (buffer: *hb_buffer_t) -> []hb_glyph_position_t
{
length: u32;
data := hb_buffer_get_glyph_positions(buffer, *length);
return .{length, data};
}