pub struct GlyphRasterizerRequest<'a> {
pub cluster: &'a str,
pub family: &'a FontFamily,
pub font_size_px: f32,
pub subpixel_offset_px: f32,
}Expand description
Input to a GlyphRasterizer.
Fields§
§cluster: &'a strThe grapheme cluster to rasterize.
For a fallback rasterizer (FontPriority::Lowest) this is a cluster no installed font has.
A priority rasterizer (FontPriority::Highest) is asked about every cluster.
family: &'a FontFamilyThe requested font family.
font_size_px: f32Requested font size in physical pixels.
subpixel_offset_px: f32Horizontal offset from the pixel grid in physical pixels.
Auto Trait Implementations§
impl<'a> Forget for GlyphRasterizerRequest<'a>
impl<'a> Freeze for GlyphRasterizerRequest<'a>
impl<'a> Move for GlyphRasterizerRequest<'a>
impl<'a> RefUnwindSafe for GlyphRasterizerRequest<'a>
impl<'a> Send for GlyphRasterizerRequest<'a>
impl<'a> Sync for GlyphRasterizerRequest<'a>
impl<'a> Unpin for GlyphRasterizerRequest<'a>
impl<'a> UnsafeUnpin for GlyphRasterizerRequest<'a>
impl<'a> UnwindSafe for GlyphRasterizerRequest<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more