egui/crates
StarStarJ 3f5cd74de7
Put font data into Arc to reduce memory consumption (#5276)
egui never accesses the `FontDefinitions`' member fields mutably, except
in `fonts_tweak_ui` where it cloned the `FontDefinitions` object anyway.

This patch reduces system memory consumption for shared font
definitions.
And also removes some overhead from copying (e.g. for the per
`pixel_per_points` font atlas)

Also it allows to keep a copy of the font definitions outside of egui.

In my App that uses international fonts:
Before:

![image](https://github.com/user-attachments/assets/f8dfb4f4-a21c-447c-8cf9-83025ad6e960)

New:

![image](https://github.com/user-attachments/assets/9f297fbd-e620-4b7e-a32a-65073ee805ed)


Note: If `Arc` is not wanted, then it could ofc be abstracted away.

I know this is quite a breaking change API wise, but would like to hear
your opinion.
2024-11-01 13:30:02 +01:00
..
ecolor Update MSRV from 1.76 to 1.77 (#5322) 2024-10-30 09:06:34 +01:00
eframe Prevent panic when copying text outside of a secure context (#5326) 2024-11-01 13:21:59 +01:00
egui Put font data into Arc to reduce memory consumption (#5276) 2024-11-01 13:30:02 +01:00
egui-wgpu Update some crates (#5337) 2024-11-01 13:07:01 +01:00
egui-winit egui-winit: Remove implicit `accesskit_winit` feature (#5316) 2024-10-29 13:09:31 +01:00
egui_demo_app wgpu: Bump to wgpu 23.0.0 and wasm-bindgen to 0.2.95 (#5330) 2024-10-30 18:53:22 +01:00
egui_demo_lib egui_kittest: Allow customizing the snapshot threshold and path (#5304) 2024-10-29 19:52:21 +01:00
egui_extras Use id_salt on Table ScrollArea (#5282) 2024-10-23 10:48:09 +02:00
egui_glow Release 0.29.1 - Bug fixes 2024-10-01 10:08:21 +02:00
egui_kittest egui_kittest: Allow customizing the snapshot threshold and path (#5304) 2024-10-29 19:52:21 +01:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Update ScrollArea drag velocity when drag stopped (#5175) 2024-10-02 18:12:36 +02:00
epaint Put font data into Arc to reduce memory consumption (#5276) 2024-11-01 13:30:02 +01:00
epaint_default_fonts Release 0.29.1 - Bug fixes 2024-10-01 10:08:21 +02:00