Closed
Description
Here is Ubuntu-Light (the default egui font) in the official Mac Font Book app (upper) and in egui (lower):
The text in egui is obviously much smaller, even though both should be size 12.
Repro:
use eframe::egui;
fn main() {
let options = eframe::NativeOptions::default();
eframe::run_native(
"Font test",
options,
Box::new(|_cc| Box::new(MyApp::default())),
);
}
#[derive(Default)]
struct MyApp {}
impl eframe::App for MyApp {
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
egui::CentralPanel::default().show(ctx, |ui| {
for size in [12, 16, 24] {
ui.horizontal(|ui| {
ui.monospace(format!("{size}px"));
ui.label(
egui::RichText::from(
"The quick brown fox jumps over the lazy dog and runs away.",
)
.size(size as f32)
.color(egui::Color32::WHITE),
)
});
}
});
}
}