pub struct SdfGlyphField { /* private fields */ }Expand description
Resolution-independent Euclidean signed-distance field for crisp gigantic-scale glyph reconstruction (> 512px).
Implementations§
Source§impl SdfGlyphField
Implements impl #impl_generics #name #ty_generics #where_clause.
impl SdfGlyphField
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_width(&self) -> u32
pub fn get_height(&self) -> u32
pub fn get_canonical_size_px(&self) -> f32
pub fn get_spread_px(&self) -> f32
pub fn get_advance_ratio(&self) -> f32
pub fn get_distances(&self) -> &Vec<f32>
Trait Implementations§
Source§impl Clone for SdfGlyphField
impl Clone for SdfGlyphField
Source§impl Debug for SdfGlyphField
impl Debug for SdfGlyphField
Source§impl Default for SdfGlyphField
impl Default for SdfGlyphField
Source§impl PartialEq for SdfGlyphField
impl PartialEq for SdfGlyphField
impl StructuralPartialEq for SdfGlyphField
Auto Trait Implementations§
impl Forget for SdfGlyphField
impl Freeze for SdfGlyphField
impl Move for SdfGlyphField
impl RefUnwindSafe for SdfGlyphField
impl Send for SdfGlyphFieldwhere
RawVecInner: Send,
impl Sync for SdfGlyphFieldwhere
RawVecInner: Sync,
impl Unpin for SdfGlyphField
impl UnsafeUnpin for SdfGlyphField
impl UnwindSafe for SdfGlyphFieldwhere
RawVecInner: UnwindSafe,
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