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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user