mirror of
https://github.com/wez/wezterm.git
synced 2024-11-10 15:04:32 +03:00
fonts: allow matching against the postscript name
This commit is contained in:
parent
99368ad567
commit
88837a0f1d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user