pub struct RenderParams {
pub foreground: Color,
pub background: Option<Color>,
pub padding: u32,
pub antialias: bool,
pub variations: Vec<(String, f32)>,
pub color_palette: u16,
pub glyph_sources: GlyphSourcePreference,
pub output: RenderMode,
}Fields§
§foreground: Color§background: Option<Color>§padding: u32§antialias: bool§variations: Vec<(String, f32)>Variable font variations like [(“wght”, 700.0), (“wdth”, 100.0)] Variable fonts need specific coordinates to render correctly
color_palette: u16CPAL color palette index for COLR color glyphs (0 = default palette)
glyph_sources: GlyphSourcePreferenceAllowed glyph sources (order + deny list)
output: RenderModeDesired render output mode (bitmap or vector)
Trait Implementations§
Source§impl Clone for RenderParams
impl Clone for RenderParams
Source§fn clone(&self) -> RenderParams
fn clone(&self) -> RenderParams
Returns a duplicate 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 moreSource§impl Debug for RenderParams
impl Debug for RenderParams
Auto Trait Implementations§
impl Freeze for RenderParams
impl RefUnwindSafe for RenderParams
impl Send for RenderParams
impl Sync for RenderParams
impl Unpin for RenderParams
impl UnsafeUnpin for RenderParams
impl UnwindSafe for RenderParams
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