mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-18 14:18:39 +03:00

* update zig * pkg/fontconfig: clean up @as * pkg/freetype,harfbuzz: clean up @as * pkg/imgui: clean up @as * pkg/macos: clean up @as * pkg/pixman,utf8proc: clean up @as * clean up @as * lots more @as cleanup * undo flatpak changes * clean up @as
17 lines
535 B
Zig
17 lines
535 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 @ptrFromInt(@intFromPtr(c.CTFontManagerCreateFontDescriptorsFromURL(
|
|
@ptrCast(url),
|
|
)));
|
|
}
|
|
|
|
pub fn createFontDescriptorsFromData(data: *foundation.Data) ?*foundation.Array {
|
|
return @ptrFromInt(@intFromPtr(c.CTFontManagerCreateFontDescriptorsFromData(
|
|
@ptrCast(data),
|
|
)));
|
|
}
|