pub struct ScalerSource {
font: Font,
order: GlyphSourceOrder,
}Expand description
A font and the order in which its outline sources are tried.
A Font converts to a source with GlyphSourceOrder::DEFAULT, so the
ScalerFont constructors accept a font directly.
Fields§
§font: Font§order: GlyphSourceOrderImplementations§
Source§impl ScalerSource
impl ScalerSource
Sourcepub fn new(font: Font, order: GlyphSourceOrder) -> Self
pub fn new(font: Font, order: GlyphSourceOrder) -> Self
Creates a source that draws font from its outline sources in
order.
See Font::outline_glyphs_with for how the order selects them.
Trait Implementations§
Source§impl Clone for ScalerSource
impl Clone for ScalerSource
Source§fn clone(&self) -> ScalerSource
fn clone(&self) -> ScalerSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScalerSource
impl Debug for ScalerSource
Auto Trait Implementations§
impl !RefUnwindSafe for ScalerSource
impl !UnwindSafe for ScalerSource
impl Freeze for ScalerSource
impl Send for ScalerSource
impl Sync for ScalerSource
impl Unpin for ScalerSource
impl UnsafeUnpin for ScalerSource
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