pub struct FontRef {
pub id: FontId,
pub name: String,
pub size: Length,
pub features: Vec<FontFeature>,
}Expand description
Font identity and size for a glyph run.
Fields§
§id: FontIdStable font identifier assigned by the engine or resource layer.
name: StringHuman readable family or resource name.
size: LengthRendered size in scaled points.
features: Vec<FontFeature>OpenType feature requests that affected shaping.
Trait Implementations§
impl Eq for FontRef
impl StructuralPartialEq for FontRef
Auto Trait Implementations§
impl Freeze for FontRef
impl RefUnwindSafe for FontRef
impl Send for FontRef
impl Sync for FontRef
impl Unpin for FontRef
impl UnsafeUnpin for FontRef
impl UnwindSafe for FontRef
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