mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-27 01:33:57 +00:00
pkg/harfbuzz: face, font, freetype
This commit is contained in:
17
pkg/harfbuzz/face.zig
Normal file
17
pkg/harfbuzz/face.zig
Normal file
@@ -0,0 +1,17 @@
|
||||
const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
|
||||
/// A font face is an object that represents a single face from within a font family.
|
||||
///
|
||||
/// More precisely, a font face represents a single face in a binary font file.
|
||||
/// Font faces are typically built from a binary blob and a face index.
|
||||
/// Font faces are used to create fonts.
|
||||
pub const Face = struct {
|
||||
handle: *c.hb_face_t,
|
||||
|
||||
/// Decreases the reference count on a face object. When the reference
|
||||
/// count reaches zero, the face is destroyed, freeing all memory.
|
||||
pub fn destroy(self: *Face) void {
|
||||
c.hb_face_destroy(self.handle);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user