Skip to content

font_data Question #1278

Answered by mjehrhart
mjehrhart asked this question in Q&A
Discussion options

You must be logged in to vote

here's the answer:

font.font_data.insert(
            "my_font".to_owned(),
            egui::FontData::from_static(include_bytes!("../Droid Sans Mono Nerd Font Complete Mono.otf")),
        );

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mjehrhart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant