impl `Clone` for `Fonts` (#3737)
Closes https://github.com/emilk/egui/issues/3731
This commit is contained in:
parent
fc18d6f8f4
commit
0a6ea15f6c
|
|
@ -32,4 +32,5 @@
|
||||||
"--all-targets",
|
"--all-targets",
|
||||||
"--all-features",
|
"--all-features",
|
||||||
],
|
],
|
||||||
|
"rust-analyzer.showUnlinkedFileNotification": false,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -348,6 +348,7 @@ impl FontDefinitions {
|
||||||
/// If you are using `egui`, use `egui::Context::set_fonts` and `egui::Context::fonts`.
|
/// 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.
|
/// You need to call [`Self::begin_frame`] and [`Self::font_image_delta`] once every frame.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct Fonts(Arc<Mutex<FontsAndCache>>);
|
pub struct Fonts(Arc<Mutex<FontsAndCache>>);
|
||||||
|
|
||||||
impl Fonts {
|
impl Fonts {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue