pub struct BaseFontInstance {
pub instance_key: FontInstanceKey,
pub font_key: FontKey,
pub size: FontSize,
pub bg_color: ColorU,
pub render_mode: FontRenderMode,
pub flags: FontInstanceFlags,
pub synthetic_italics: SyntheticItalics,
pub platform_options: Option<FontInstancePlatformOptions>,
pub variations: Vec<FontVariation>,
}
Expand description
Immutable description of a font instance requested by the user of the API.
BaseFontInstance
can be identified by a FontInstanceKey
so we should
never need to hash it.
Fields§
§instance_key: FontInstanceKey
§font_key: FontKey
§size: FontSize
§bg_color: ColorU
§render_mode: FontRenderMode
§flags: FontInstanceFlags
§synthetic_italics: SyntheticItalics
§platform_options: Option<FontInstancePlatformOptions>
§variations: Vec<FontVariation>
Trait Implementations§
Source§impl Clone for BaseFontInstance
impl Clone for BaseFontInstance
Source§fn clone(&self) -> BaseFontInstance
fn clone(&self) -> BaseFontInstance
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BaseFontInstance
impl Debug for BaseFontInstance
Source§impl MallocSizeOf for BaseFontInstance
impl MallocSizeOf for BaseFontInstance
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl Ord for BaseFontInstance
impl Ord for BaseFontInstance
Source§fn cmp(&self, other: &BaseFontInstance) -> Ordering
fn cmp(&self, other: &BaseFontInstance) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BaseFontInstance
impl PartialEq for BaseFontInstance
Source§impl PartialOrd for BaseFontInstance
impl PartialOrd for BaseFontInstance
impl Eq for BaseFontInstance
impl StructuralPartialEq for BaseFontInstance
Auto Trait Implementations§
impl Freeze for BaseFontInstance
impl RefUnwindSafe for BaseFontInstance
impl Send for BaseFontInstance
impl Sync for BaseFontInstance
impl Unpin for BaseFontInstance
impl UnwindSafe for BaseFontInstance
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