Disable ligatures in SSH connection dialogue (#20549)
Closes #20381 Release Notes: - Fixed password dialog for remote server showing ligatures
This commit is contained in:
parent
d1e2c6e657
commit
47ca3401ce
2 changed files with 8 additions and 2 deletions
|
@ -7,6 +7,11 @@ use schemars::schema::{InstanceType, SchemaObject};
|
|||
pub struct FontFeatures(pub Arc<Vec<(String, u32)>>);
|
||||
|
||||
impl FontFeatures {
|
||||
/// Disables `calt`.
|
||||
pub fn disable_ligatures() -> Self {
|
||||
Self(Arc::new(vec![("calt".into(), 0)]))
|
||||
}
|
||||
|
||||
/// Get the tag name list of the font OpenType features
|
||||
/// only enabled or disabled features are returned
|
||||
pub fn tag_value_list(&self) -> &[(String, u32)] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue