pkg/fontconfig: add weights/slants enum

This commit is contained in:
Mitchell Hashimoto
2022-09-16 10:08:49 -07:00
parent 5b215409c6
commit d69f8397f3
4 changed files with 109 additions and 85 deletions

View File

@@ -6,6 +6,7 @@ const Property = @import("main.zig").Property;
const Result = @import("main.zig").Result;
const Value = @import("main.zig").Value;
const ValueBinding = @import("main.zig").ValueBinding;
const Weight = @import("main.zig").Weight;
pub const Pattern = opaque {
pub fn create() *Pattern {
@@ -140,6 +141,7 @@ test "create" {
defer pat.destroy();
try testing.expect(pat.add(.family, .{ .string = "monospace" }, false));
try testing.expect(pat.add(.weight, .{ .integer = @enumToInt(Weight.bold) }, false));
}
test "name parse" {