From 28322ed3045f4fc34c9d85bb254de32d4714d1f0 Mon Sep 17 00:00:00 2001 From: Isabella Basso Date: Tue, 26 Sep 2023 11:09:09 -0300 Subject: [PATCH] quirks: CodeNewRoman should disable ligatures by default --- src/quirks.zig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/quirks.zig b/src/quirks.zig index 26e508710..a43001e5a 100644 --- a/src/quirks.zig +++ b/src/quirks.zig @@ -19,9 +19,10 @@ pub fn disableDefaultFontFeatures(face: *const font.Face) bool { error.OutOfMemory => return false, }; - // Menlo and Monaco both have a default ligature of "fi" that looks - // really bad in terminal grids, so we want to disable ligatures + // CodeNewRoman, Menlo and Monaco both have a default ligature of "fi" that + // looks really bad in terminal grids, so we want to disable ligatures // by default for these faces. - return std.mem.eql(u8, name, "Menlo") or + return std.mem.eql(u8, name, "CodeNewRoman") or + std.mem.eql(u8, name, "Menlo") or std.mem.eql(u8, name, "Monaco"); }