Enum me3_framework::overlay::epaint::text::FontFamily
source · [−]Expand description
Font of unknown size.
Which style of font: Monospace
, Proportional
,
or by user-chosen name.
Variants
Proportional
A font where some characters are wider than other (e.g. ‘w’ is wider than ‘i’).
Proportional fonts are easier to read and should be the preferred choice in most situations.
Monospace
A font where each character is the same width (w
is the same width as i
).
Useful for code snippets, or when you need to align numbers or text.
Name(Arc<str>)
One of the names in FontDefinitions::families
.
// User-chosen names:
FontFamily::Name("arial".into());
FontFamily::Name("serif".into());
Trait Implementations
sourceimpl Clone for FontFamily
impl Clone for FontFamily
sourcefn clone(&self) -> FontFamily
fn clone(&self) -> FontFamily
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FontFamily
impl Debug for FontFamily
sourceimpl Default for FontFamily
impl Default for FontFamily
sourcefn default() -> FontFamily
fn default() -> FontFamily
Returns the “default value” for a type. Read more
sourceimpl Display for FontFamily
impl Display for FontFamily
sourceimpl Hash for FontFamily
impl Hash for FontFamily
sourceimpl Ord for FontFamily
impl Ord for FontFamily
sourcefn cmp(&self, other: &FontFamily) -> Ordering
fn cmp(&self, other: &FontFamily) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FontFamily> for FontFamily
impl PartialEq<FontFamily> for FontFamily
sourcefn eq(&self, other: &FontFamily) -> bool
fn eq(&self, other: &FontFamily) -> bool
sourceimpl PartialOrd<FontFamily> for FontFamily
impl PartialOrd<FontFamily> for FontFamily
sourcefn partial_cmp(&self, other: &FontFamily) -> Option<Ordering>
fn partial_cmp(&self, other: &FontFamily) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for FontFamily
impl StructuralEq for FontFamily
impl StructuralPartialEq for FontFamily
Auto Trait Implementations
impl RefUnwindSafe for FontFamily
impl Send for FontFamily
impl Sync for FontFamily
impl Unpin for FontFamily
impl UnwindSafe for FontFamily
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more