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