mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-19 18:26:13 +03:00
@ -265,11 +265,16 @@ pub fn italicize(self: *Group) !void {
|
|||||||
const list = self.faces.get(.regular);
|
const list = self.faces.get(.regular);
|
||||||
if (list.items.len == 0) return;
|
if (list.items.len == 0) return;
|
||||||
|
|
||||||
// The font must be loaded.
|
// Find our first font that is text.
|
||||||
break :regular try self.faceFromIndex(.{
|
for (0..list.items.len) |i| {
|
||||||
.style = .regular,
|
const face = try self.faceFromIndex(.{
|
||||||
.idx = 0,
|
.style = .regular,
|
||||||
});
|
.idx = @intCast(i),
|
||||||
|
});
|
||||||
|
if (face.presentation == .text) break :regular face;
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Try to italicize it.
|
// Try to italicize it.
|
||||||
|
Reference in New Issue
Block a user