1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00

Pass around Arc<Galley> to avoid copying a lot of data

This commit is contained in:
Emil Ernerfeldt
2021-03-29 22:30:18 +02:00
parent 94baf98eab
commit 1c60dc8d66
6 changed files with 33 additions and 20 deletions

View File

@@ -43,7 +43,7 @@ pub enum Shape {
/// Top left corner of the first character..
pos: Pos2,
/// The layed out text.
galley: Galley,
galley: std::sync::Arc<Galley>,
/// Text color (foreground).
color: Color32,
/// If true, tilt the letters for a hacky italics effect.