Struct veloren_client_i18n::Font
source · pub struct Font {
pub asset_key: String,
pub(crate) scale_ratio: f32,
}
Expand description
Store font metadata
Fields§
§asset_key: String
Key to retrieve the font in the asset system
scale_ratio: f32
Scale ratio to resize the UI text dynamically
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Font
impl<'de> Deserialize<'de> for Font
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Font
impl PartialEq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more