From 64dd96917dbd036fa41a4b6c2a75f21da618719e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 20 Aug 2023 22:59:22 -0700 Subject: [PATCH] fonts: repurpose experimental_svg_fonts -> ignore_svg_fonts Now we can optionally skip loading svg fonts, making our default to continue to try to use them. We don't actually support interpreting svg data, but we do now support COLR v1 data which is found in some of those same fonts. refs: https://github.com/wez/wezterm/issues/4148 --- config/src/config.rs | 2 +- wezterm-font/src/parser.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/src/config.rs b/config/src/config.rs index 165136796..33798ec53 100644 --- a/config/src/config.rs +++ b/config/src/config.rs @@ -721,7 +721,7 @@ pub struct Config { pub experimental_pixel_positioning: bool, #[dynamic(default)] - pub experimental_svg_fonts: bool, + pub ignore_svg_fonts: bool, #[dynamic(default)] pub bidi_enabled: bool, diff --git a/wezterm-font/src/parser.rs b/wezterm-font/src/parser.rs index 898495223..49c0f7de2 100644 --- a/wezterm-font/src/parser.rs +++ b/wezterm-font/src/parser.rs @@ -372,8 +372,8 @@ impl ParsedFont { }; if has_svg { - if !config::configuration().experimental_svg_fonts { - anyhow::bail!("skip svg font"); + if config::configuration().ignore_svg_fonts { + anyhow::bail!("skipping svg font because ignore_svg_fonts=true"); } }