egui/crates
valadaptive 7ac137bfc1
Make the font atlas use a color image (#7298)
* [x] I have followed the instructions in the PR template

Splitting this out from the Parley work as requested. This removes
`FontImage` and makes the font atlas use a `ColorImage`. It converts
alpha to coverage at glyph-drawing time, not at delta-upload time.

This doesn't do much now, but will allow for color emoji rendering once
we start using Parley.

I've changed things around so that we pass in `text_alpha_to_coverage`
to the `Fonts` the same way we do with `pixels_per_point` and
`max_texture_side`, reusing the existing code to check if the setting
differs and recreating the font atlas if so. I'm not quite sure why this
wasn't done in the first place.

I've left `ImageData` as an enum for now, in case we want to add support
for more texture pixel formats in the future (which I personally think
would be worthwhile). If you'd like, I can just remove that enum
entirely.
2025-07-04 13:15:48 +02:00
..
ecolor Use Rust edition 2024 (#7280) 2025-06-30 14:01:57 +02:00
eframe Respect and detect `prefers-color-scheme: no-preference` (#7293) 2025-07-03 08:58:45 +02:00
egui Make the font atlas use a color image (#7298) 2025-07-04 13:15:48 +02:00
egui-wgpu Make the font atlas use a color image (#7298) 2025-07-04 13:15:48 +02:00
egui-winit Use Rust edition 2024 (#7280) 2025-06-30 14:01:57 +02:00
egui_demo_app Add `Visuals::weak_text_alpha` and `weak_text_color` (#7285) 2025-07-01 20:42:54 +02:00
egui_demo_lib Make the font atlas use a color image (#7298) 2025-07-04 13:15:48 +02:00
egui_extras Extend .typos.toml to enforce american english (#7284) 2025-07-01 15:54:00 +02:00
egui_glow Make the font atlas use a color image (#7298) 2025-07-04 13:15:48 +02:00
egui_kittest `egui_kittest`: add `failed_pixel_count_threshold` (#7092) 2025-07-03 14:23:15 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
emath Fix `debug_assert` triggered by `menu`/`intersect_ray` (#7299) 2025-07-04 09:55:03 +02:00
epaint Make the font atlas use a color image (#7298) 2025-07-04 13:15:48 +02:00
epaint_default_fonts Update `emoji-icon-font` with fix for fullwidth latin characters (#7067) 2025-05-21 13:22:23 +02:00