diff --git a/docs/changelog.md b/docs/changelog.md index fa703ce50..8d8a5a5c2 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -43,6 +43,7 @@ As features stabilize some brief notes about them will accumulate here. * Improved: multi-click-streaks are now interrupted by the cursor moving to a different cell. Thanks to [@unrelentingtech](https://github.com/unrelentingtech)! [#1126](https://github.com/wez/wezterm/issues/1126) * Fixed: Wayland: dragging the window using the tab bar now works. Thanks to [@unrelentingtech](https://github.com/unrelentingtech)! [#1127](https://github.com/wez/wezterm/issues/1127) * New: X11, macOS: Window resizing now prefers to step in increments of the cell size +* Fixed: error matching a font when that font is in a .ttc that contains multiple font families. [#1137](https://github.com/wez/wezterm/issues/1137) ### 20210814-124438-54e29167 diff --git a/wezterm-font/src/parser.rs b/wezterm-font/src/parser.rs index 528d9e631..2ccf05843 100644 --- a/wezterm-font/src/parser.rs +++ b/wezterm-font/src/parser.rs @@ -465,6 +465,7 @@ pub fn best_matching_font( ) -> anyhow::Result> { let mut font_info = vec![]; parse_and_collect_font_info(source, &mut font_info, origin)?; + font_info.retain(|font| font.matches_name(font_attr)); Ok(ParsedFont::best_match(font_attr, font_info)) }