strip ubuntu light font

This commit is contained in:
Simon Gardling
2022-06-01 01:49:55 -04:00
parent 8e8afd9876
commit dcb46be633
5 changed files with 47 additions and 5 deletions

9
src/unicode_helper.rs Normal file
View File

@@ -0,0 +1,9 @@
#[allow(dead_code)]
pub fn to_unicode_hash(c: char) -> String {
c.escape_unicode()
.to_string()
.replace(r#"\\u{"#, "")
.replace("{", "")
.replace("}", "")
.to_uppercase()
}