We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Copy
Clone
FontAtlasKey
1 parent 1fd3bfb commit c2e8d92Copy full SHA for c2e8d92
crates/bevy_text/src/font_atlas_set.rs
@@ -49,7 +49,7 @@ pub fn remove_dropped_font_atlas_sets(
49
/// Identifies a font size and smoothing method in a [`FontAtlasSet`].
50
///
51
/// Allows an `f32` font size to be used as a key in a `HashMap`, by its binary representation.
52
-#[derive(Debug, Hash, PartialEq, Eq)]
+#[derive(Debug, Hash, PartialEq, Eq, Copy, Clone)]
53
pub struct FontAtlasKey(pub u32, pub FontSmoothing);
54
55
/// A map of font sizes to their corresponding [`FontAtlas`]es, for a given font face.
0 commit comments