1
0
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:
Emil Ernerfeldt
2020-09-09 14:24:13 +02:00
parent 0e870dae3e
commit bb367752cf
10 changed files with 178 additions and 103 deletions

View File

@@ -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

View File

@@ -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,