mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
[text] support non-latin characters by dynamically adding them to atlas
This commit is contained in:
@@ -105,7 +105,7 @@ pub fn run(
|
||||
let frame_time = (Instant::now() - egui_start).as_secs_f64() as f32;
|
||||
runner.frame_times.add(raw_input.time, frame_time);
|
||||
|
||||
painter.paint_jobs(&display, paint_jobs, ctx.texture());
|
||||
painter.paint_jobs(&display, paint_jobs, &ctx.texture());
|
||||
|
||||
if runner.quit {
|
||||
*control_flow = glutin::event_loop::ControlFlow::Exit
|
||||
|
||||
@@ -258,7 +258,7 @@ impl Painter {
|
||||
u_sampler: &self.texture,
|
||||
};
|
||||
|
||||
// Emilib outputs colors with premultiplied alpha:
|
||||
// Egui outputs colors with premultiplied alpha:
|
||||
let blend_func = glium::BlendingFunction::Addition {
|
||||
source: glium::LinearBlendingFactor::One,
|
||||
destination: glium::LinearBlendingFactor::OneMinusSourceAlpha,
|
||||
|
||||
Reference in New Issue
Block a user