Move from Zed fonts to IBM Plex (#13596)

Release Notes:

- Changed the default fonts to IBM Plex Sans and IBM Plex Mono. If you'd
like to go back to using Zed Sans/Zed mono you need to
[download](https://github.com/zed-industries/zed-fonts/releases/tag/1.2.0)
them and install them.
This commit is contained in:
Conrad Irwin
2024-06-27 14:36:44 -06:00
committed by GitHub
parent 6a1b257d39
commit 7d7fd7d25d
33 changed files with 288 additions and 55 deletions
+2 -2
View File
@@ -3111,11 +3111,11 @@ mod tests {
cx.text_system()
.add_fonts(vec![
Assets
.load("fonts/zed-sans/zed-sans-extended.ttf")
.load("fonts/plex-mono/ZedPlexMono-Regular.ttf")
.unwrap()
.unwrap(),
Assets
.load("fonts/zed-mono/zed-mono-extended.ttf")
.load("fonts/plex-sans/ZedPlexSans-Regular.ttf")
.unwrap()
.unwrap(),
])
+5 -1
View File
@@ -3,6 +3,8 @@ use gpui::{
InteractiveElement, IntoElement, ParentElement, PromptHandle, PromptLevel, PromptResponse,
Render, RenderablePromptHandle, Styled, ViewContext, VisualContext, WindowContext,
};
use settings::Settings;
use theme::ThemeSettings;
use ui::{
h_flex, v_flex, ButtonCommon, ButtonStyle, Clickable, ElevationIndex, FluentBuilder, LabelSize,
TintColor,
@@ -56,6 +58,8 @@ impl FallbackPromptRenderer {
}
impl Render for FallbackPromptRenderer {
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
let settings = ThemeSettings::get_global(cx);
let font_family = settings.ui_font.family.clone();
let prompt = v_flex()
.key_context("Prompt")
.cursor_default()
@@ -67,7 +71,7 @@ impl Render for FallbackPromptRenderer {
.overflow_hidden()
.p_4()
.gap_4()
.font_family("Zed Sans")
.font_family(font_family)
.child(
div()
.w_full()