Handle underscores in the font name as spaces (#1214)

macos-click-through
multisn8 3 years ago committed by GitHub
parent 92bc1725f1
commit 5f9e22c7e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,7 +23,7 @@ impl FontOptions {
let parsed_font_list: Vec<String> = parts let parsed_font_list: Vec<String> = parts
.split(',') .split(',')
.filter(|fallback| !fallback.is_empty()) .filter(|fallback| !fallback.is_empty())
.map(|fallback| fallback.to_string()) .map(|fallback| fallback.replace('_', " "))
.collect(); .collect();
if !parsed_font_list.is_empty() { if !parsed_font_list.is_empty() {

Loading…
Cancel
Save