fontconfig: fc-match

This commit is contained in:
Mitchell Hashimoto
2022-09-14 12:49:43 -07:00
parent eb2ce495b3
commit 03ab1bedd4
6 changed files with 131 additions and 9 deletions

View File

@@ -14,6 +14,10 @@ pub const Pattern = opaque {
c.FcPatternDestroy(self.cval());
}
pub fn defaultSubstitute(self: *Pattern) void {
c.FcDefaultSubstitute(self.cval());
}
pub fn print(self: *Pattern) void {
c.FcPatternPrint(self.cval());
}
@@ -31,4 +35,6 @@ test "create" {
test "name parse" {
var pat = Pattern.parse(":monospace");
defer pat.destroy();
pat.defaultSubstitute();
}