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);
|
||||
if (list.items.len == 0) return;
|
||||
|
||||
// The font must be loaded.
|
||||
break :regular try self.faceFromIndex(.{
|
||||
// Find our first font that is text.
|
||||
for (0..list.items.len) |i| {
|
||||
const face = try self.faceFromIndex(.{
|
||||
.style = .regular,
|
||||
.idx = 0,
|
||||
.idx = @intCast(i),
|
||||
});
|
||||
if (face.presentation == .text) break :regular face;
|
||||
}
|
||||
|
||||
return;
|
||||
};
|
||||
|
||||
// Try to italicize it.
|
||||
|
Reference in New Issue
Block a user