mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
font/fontconfig: support style descriptor
This commit is contained in:
@ -64,6 +64,9 @@ pub const Descriptor = struct {
|
|||||||
if (self.family) |family| {
|
if (self.family) |family| {
|
||||||
assert(pat.add(.family, .{ .string = family }, false));
|
assert(pat.add(.family, .{ .string = family }, false));
|
||||||
}
|
}
|
||||||
|
if (self.style) |style| {
|
||||||
|
assert(pat.add(.style, .{ .string = style }, false));
|
||||||
|
}
|
||||||
if (self.codepoint > 0) {
|
if (self.codepoint > 0) {
|
||||||
const cs = fontconfig.CharSet.create();
|
const cs = fontconfig.CharSet.create();
|
||||||
defer cs.destroy();
|
defer cs.destroy();
|
||||||
|
Reference in New Issue
Block a user