Skip to content

Backspace character doesn't get rendered #5595

Answered by YgorSouza
FalconSN asked this question in Q&A
Discussion options

You must be logged in to vote

I tried with a different font and the character is displayed correctly:

use eframe::egui::{self, FontFamily};

fn main() -> eframe::Result {
    let options = eframe::NativeOptions {
        viewport: egui::ViewportBuilder::default().with_inner_size([320.0, 240.0]),
        ..Default::default()
    };

    eframe::run_simple_native("My egui App", options, move |ctx, _frame| {
        let mut fonts = egui::FontDefinitions::empty();
        fonts.font_data.insert(
            "my_font".to_string(),
            std::sync::Arc::new(egui::FontData::from_static(include_bytes!(
                "../FiraCodeNerdFont-Retina.ttf"
            ))),
        );
        for family in [FontFamily::Proport…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FalconSN
Comment options

Answer selected by FalconSN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants