1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

impl Clone for Fonts (#3737)

Closes https://github.com/emilk/egui/issues/3731
This commit is contained in:
Emil Ernerfeldt
2023-12-25 19:00:54 +01:00
committed by GitHub
parent fc18d6f8f4
commit 0a6ea15f6c
2 changed files with 2 additions and 0 deletions

View File

@@ -32,4 +32,5 @@
"--all-targets",
"--all-features",
],
"rust-analyzer.showUnlinkedFileNotification": false,
}

View File

@@ -348,6 +348,7 @@ impl FontDefinitions {
/// If you are using `egui`, use `egui::Context::set_fonts` and `egui::Context::fonts`.
///
/// You need to call [`Self::begin_frame`] and [`Self::font_image_delta`] once every frame.
#[derive(Clone)]
pub struct Fonts(Arc<Mutex<FontsAndCache>>);
impl Fonts {