diff --git a/crates/gpui/src/text_system/font_features.rs b/crates/gpui/src/text_system/font_features.rs index 436ff94ce8a3919e098a35bd150952fce7e5d984..104c55b49b91012c8b9931c226c64a24fb672659 100644 --- a/crates/gpui/src/text_system/font_features.rs +++ b/crates/gpui/src/text_system/font_features.rs @@ -7,6 +7,11 @@ use schemars::schema::{InstanceType, SchemaObject}; pub struct FontFeatures(pub Arc>); 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)] { diff --git a/crates/recent_projects/src/ssh_connections.rs b/crates/recent_projects/src/ssh_connections.rs index 8320bbee831a071c015d763b07c1a5f24b2942fc..e70b68d374de51be94bc1fbe15785a510f33b9ce 100644 --- a/crates/recent_projects/src/ssh_connections.rs +++ b/crates/recent_projects/src/ssh_connections.rs @@ -7,8 +7,8 @@ use editor::Editor; use futures::channel::oneshot; use gpui::{ percentage, Animation, AnimationExt, AnyWindowHandle, AsyncAppContext, DismissEvent, - EventEmitter, FocusableView, ParentElement as _, PromptLevel, Render, SemanticVersion, - SharedString, Task, TextStyleRefinement, Transformation, View, WeakView, + EventEmitter, FocusableView, FontFeatures, ParentElement as _, PromptLevel, Render, + SemanticVersion, SharedString, Task, TextStyleRefinement, Transformation, View, WeakView, }; use gpui::{AppContext, Model}; @@ -178,6 +178,7 @@ impl SshPrompt { let mut text_style = cx.text_style(); let refinement = TextStyleRefinement { font_family: Some(theme.buffer_font.family.clone()), + font_features: Some(FontFeatures::disable_ligatures()), font_size: Some(theme.buffer_font_size.into()), color: Some(cx.theme().colors().editor_foreground), background_color: Some(gpui::transparent_black()),