fontconfig: font sets

This commit is contained in:
Mitchell Hashimoto
2022-09-14 10:05:09 -07:00
parent 382f569d65
commit ce899dca11
3 changed files with 49 additions and 4 deletions

View File

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