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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {