aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/libghostty-vt/pkg/harfbuzz/face.zig
blob: 942894b92969338b09c99015fdec70b27c6fda8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const std = @import("std");
const c = @import("hb_c");

/// 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);
    }
};