From 5f9e22c7e5fb1bdd96d0e2f33ffa26db5addf7d0 Mon Sep 17 00:00:00 2001 From: multisn8 Date: Sat, 12 Feb 2022 21:24:15 +0100 Subject: [PATCH] Handle underscores in the font name as spaces (#1214) --- src/renderer/fonts/font_options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/fonts/font_options.rs b/src/renderer/fonts/font_options.rs index d0c4805..484f8ce 100644 --- a/src/renderer/fonts/font_options.rs +++ b/src/renderer/fonts/font_options.rs @@ -23,7 +23,7 @@ impl FontOptions { let parsed_font_list: Vec = parts .split(',') .filter(|fallback| !fallback.is_empty()) - .map(|fallback| fallback.to_string()) + .map(|fallback| fallback.replace('_', " ")) .collect(); if !parsed_font_list.is_empty() {