mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
egui_web: make text thicker and less pixelated (#640)
Closes https://github.com/emilk/egui/issues/516
This commit is contained in:
@@ -368,7 +368,8 @@ impl crate::Painter for WebGl2Painter {
|
||||
}
|
||||
|
||||
let mut pixels: Vec<u8> = Vec::with_capacity(texture.pixels.len() * 4);
|
||||
for srgba in texture.srgba_pixels() {
|
||||
let font_gamma = 1.0 / 2.2; // HACK due to non-linear framebuffer blending.
|
||||
for srgba in texture.srgba_pixels(font_gamma) {
|
||||
pixels.push(srgba.r());
|
||||
pixels.push(srgba.g());
|
||||
pixels.push(srgba.b());
|
||||
|
||||
Reference in New Issue
Block a user