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
This commit is contained in:
Wez Furlong committed 2023-08-20 22:59:22 -07:00
1 parent e1044a6d5f
commit 64dd96917d
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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,
+2 -2
View File
@@ -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");
}
}