strip ubuntu light font
This commit is contained in:
@@ -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! {
|
||||
|
||||
@@ -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
9
src/unicode_helper.rs
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user