mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-26 17:23:56 +00:00
fontconfig: font sets
This commit is contained in:
@@ -11,10 +11,15 @@ pub const Pattern = opaque {
|
||||
}
|
||||
|
||||
pub fn destroy(self: *Pattern) void {
|
||||
c.FcPatternDestroy(@ptrCast(
|
||||
*c.struct__FcPattern,
|
||||
self,
|
||||
));
|
||||
c.FcPatternDestroy(self.cval());
|
||||
}
|
||||
|
||||
pub fn print(self: *Pattern) void {
|
||||
c.FcPatternPrint(self.cval());
|
||||
}
|
||||
|
||||
inline fn cval(self: *Pattern) *c.struct__FcPattern {
|
||||
return @ptrCast(*c.struct__FcPattern, self);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user