Skip to content

Commit

Permalink
replaced arial proprietary font in fyroxed with roboto
Browse files Browse the repository at this point in the history
  • Loading branch information
mrDIMAS committed Dec 24, 2024
1 parent f08c2e6 commit df729e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file added editor/resources/Roboto-Regular.ttf
Binary file not shown.
Binary file removed editor/resources/arial.ttf
Binary file not shown.
8 changes: 5 additions & 3 deletions editor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,11 @@ impl Editor {
{
let mut font_state = engine.user_interfaces.first_mut().default_font.state();
let font_state_data = font_state.data().unwrap();
*font_state_data =
Font::from_memory(include_bytes!("../resources/arial.ttf").as_slice(), 1024)
.unwrap();
*font_state_data = Font::from_memory(
include_bytes!("../resources/Roboto-Regular.ttf").as_slice(),
1024,
)
.unwrap();
}

let ui = engine.user_interfaces.first_mut();
Expand Down

0 comments on commit df729e5

Please sign in to comment.