mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
17 lines
537 B
Zig
17 lines
537 B
Zig
const std = @import("std");
|
|
const Allocator = std.mem.Allocator;
|
|
const foundation = @import("../foundation.zig");
|
|
const c = @import("c.zig").c;
|
|
|
|
pub fn createFontDescriptorsFromURL(url: *foundation.URL) ?*foundation.Array {
|
|
return @ptrFromInt(@intFromPtr(c.CTFontManagerCreateFontDescriptorsFromURL(
|
|
@ptrCast(url),
|
|
)));
|
|
}
|
|
|
|
pub fn createFontDescriptorsFromData(data: *foundation.Data) ?*foundation.Array {
|
|
return @ptrFromInt(@intFromPtr(c.CTFontManagerCreateFontDescriptorsFromData(
|
|
@ptrCast(data),
|
|
)));
|
|
}
|