1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 06:12:16 +03:00

fonts: allow matching against the postscript name

This commit is contained in:
Wez Furlong 2021-04-08 00:52:06 -07:00
parent 99368ad567
commit 88837a0f1d

View File

@ -207,6 +207,12 @@ impl ParsedFont {
if attr.family == self.names.full_name {
FontMatch::FullName
} else if let Some(ps) = self.names.postscript_name.as_ref() {
if attr.family == *ps {
FontMatch::FullName
} else {
FontMatch::NoMatch
}
} else {
FontMatch::NoMatch
}