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

View File

@@ -21,6 +21,7 @@ mod function_manager;
mod math_app;
mod misc;
mod style;
mod unicode_helper;
mod widgets;
pub use crate::{
@@ -35,6 +36,7 @@ pub use crate::{
step_helper,
EguiHelper,
},
unicode_helper::to_unicode_hash,
};
cfg_if::cfg_if! {

View File

@@ -21,6 +21,7 @@ mod function_manager;
mod math_app;
mod misc;
mod style;
mod unicode_helper;
mod widgets;
// For running the program natively! (Because why not?)

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()
}