mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 22:10:29 +00:00
fontconfig: fc-match
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user