Struct webrender_api::font::FontInstanceData
source · pub struct FontInstanceData {
pub font_key: FontKey,
pub size: f32,
pub options: Option<FontInstanceOptions>,
pub platform_options: Option<FontInstancePlatformOptions>,
pub variations: Vec<FontVariation>,
}
Expand description
Data corresponding to an instantiation of a font, with size and other options specified.
Note that the actual font is stored out-of-band in FontTemplate
.
Fields§
§font_key: FontKey
§size: f32
§options: Option<FontInstanceOptions>
§platform_options: Option<FontInstancePlatformOptions>
§variations: Vec<FontVariation>
Trait Implementations§
source§impl Clone for FontInstanceData
impl Clone for FontInstanceData
source§fn clone(&self) -> FontInstanceData
fn clone(&self) -> FontInstanceData
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 moreAuto Trait Implementations§
impl Freeze for FontInstanceData
impl RefUnwindSafe for FontInstanceData
impl Send for FontInstanceData
impl Sync for FontInstanceData
impl Unpin for FontInstanceData
impl UnwindSafe for FontInstanceData
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