mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-20 14:25:19 +00:00
pkg/fontconfig: add weights/slants enum
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user