pub struct GlyphParams {
pub em_size: f32,
pub depth: f32,
pub slab: (f32, f32),
pub resolution: u32,
pub collider_resolution: u32,
pub flatten_tolerance_em: f32,
pub color: [f32; 4],
}Expand description
All lengths are world units except Self::flatten_tolerance_em.
Fields§
§em_size: f32§depth: f32Extent along z, centred on z = 0.
slab: (f32, f32)(min, max) w extent of the slab the letter occupies.
resolution: u32Grid cells per em for the bake and the render decomposition.
collider_resolution: u32Grid cells per em for the collider cover.
flatten_tolerance_em: f32Requested chord deviation in em, subject to a 64-subdivision budget per Bezier segment.
color: [f32; 4]RGBA linear.
Trait Implementations§
Source§impl Clone for GlyphParams
impl Clone for GlyphParams
Source§fn clone(&self) -> GlyphParams
fn clone(&self) -> GlyphParams
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 GlyphParams
impl Debug for GlyphParams
Source§impl Default for GlyphParams
impl Default for GlyphParams
Source§impl PartialEq for GlyphParams
impl PartialEq for GlyphParams
impl StructuralPartialEq for GlyphParams
Auto Trait Implementations§
impl Freeze for GlyphParams
impl RefUnwindSafe for GlyphParams
impl Send for GlyphParams
impl Sync for GlyphParams
impl Unpin for GlyphParams
impl UnsafeUnpin for GlyphParams
impl UnwindSafe for GlyphParams
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