Merge pull request #1216 from imabadparent/add-codenewroman-nerd-font-to-quirks

quirks: add CodeNewRoman Nerd Font to quirks
This commit is contained in:
Mitchell Hashimoto
2024-01-04 19:37:22 -08:00
committed by GitHub

View File

@ -23,6 +23,7 @@ pub fn disableDefaultFontFeatures(face: *const font.Face) bool {
// looks really bad in terminal grids, so we want to disable ligatures // looks really bad in terminal grids, so we want to disable ligatures
// by default for these faces. // by default for these faces.
return std.mem.eql(u8, name, "CodeNewRoman") or return std.mem.eql(u8, name, "CodeNewRoman") or
std.mem.eql(u8, name, "CodeNewRoman Nerd Font") or
std.mem.eql(u8, name, "Menlo") or std.mem.eql(u8, name, "Menlo") or
std.mem.eql(u8, name, "Monaco"); std.mem.eql(u8, name, "Monaco");
} }