pub struct Font {
pub from: &'static str,
pub name: &'static str,
pub size: i64,
pub border: Option<bool>,
pub border_color: Option<Color>,
pub filtered: Option<bool>,
pub spacing: Option<f64>,
}Expand description
Minimal FontPrototype for data.extend.
Fonts are used in all GUIs in the game.
type = "font" is injected by the Lua generator.
Fields§
§from: &'static strThe name of the fonts .ttf descriptor. This descriptor must be defined in the locale info.json. Refer to data/core/locale/_language_/info.json for examples.
name: &'static strName of the font.
size: i64Size of the font.
border: Option<bool>Whether the font has a border.
border_color: Option<Color>The color of the border, if enabled.
filtered: Option<bool>Prototype property filtered.
spacing: Option<f64>Prototype property spacing.
Trait Implementations§
impl Copy for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnsafeUnpin for Font
impl UnwindSafe for Font
Blanket Implementations§
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