Struct swash::scale::ScaleContext
source · pub struct ScaleContext { /* private fields */ }
Expand description
Context that manages caches and scratch buffers for scaling.
See the module level documentation for detail.
Implementations§
source§impl ScaleContext
impl ScaleContext
sourcepub fn with_max_entries(max_entries: usize) -> Self
pub fn with_max_entries(max_entries: usize) -> Self
Creates a new scaling context with the specified maximum number of cache entries.
sourcepub fn builder<'a>(
&'a mut self,
font: impl Into<FontRef<'a>>,
) -> ScalerBuilder<'a>
pub fn builder<'a>( &'a mut self, font: impl Into<FontRef<'a>>, ) -> ScalerBuilder<'a>
Creates a new builder for constructing a scaler with this context and the specified font.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScaleContext
impl RefUnwindSafe for ScaleContext
impl Send for ScaleContext
impl Sync for ScaleContext
impl Unpin for ScaleContext
impl UnwindSafe for ScaleContext
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