From b98fb8410b02c67990ee43796742ee2b033f900e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 8 Jul 2022 21:01:35 -0700 Subject: [PATCH] fonts: assume emoji presentation for fonts with "moji" in their name previously, we'd match "emoji", but that wouldn't match openmoji. --- wezterm-font/src/parser.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wezterm-font/src/parser.rs b/wezterm-font/src/parser.rs index 65a858f15..86e1cb29a 100644 --- a/wezterm-font/src/parser.rs +++ b/wezterm-font/src/parser.rs @@ -667,10 +667,13 @@ impl ParsedFont { && self.weight >= FontWeight::REGULAR; // If they explicitly list an emoji font, assume that they - // want it to be used for emoji presentation + // want it to be used for emoji presentation. + // We match on "moji" rather than "emoji" as there are + // emoji fonts that are moji rather than emoji :-/ + // This heuristic is awful, TBH. if !self.is_built_in_fallback && !attr.is_synthetic - && self.names.full_name.to_lowercase().contains("emoji") + && self.names.full_name.to_lowercase().contains("moji") { self.assume_emoji_presentation = true; }