mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
20 lines
552 B
Zig
20 lines
552 B
Zig
//! A library represents the shared state that the underlying font
|
|
//! library implementation(s) require per-process.
|
|
//!
|
|
//! In the future, this will be abstracted so that the underlying text
|
|
//! engine might not be Freetype and may be something like Core Text,
|
|
//! but the API will remain the same.
|
|
const Library = @This();
|
|
|
|
const freetype = @import("freetype");
|
|
|
|
lib: freetype.Library,
|
|
|
|
pub fn init() freetype.Error!Library {
|
|
return Library{ .lib = try freetype.Library.init() };
|
|
}
|
|
|
|
pub fn deinit(self: *Library) void {
|
|
self.lib.deinit();
|
|
}
|