[−][src]Struct ttf_utils::Outline
A glyph outline.
Implementations
impl Outline[src]
pub fn new(face: &Face<'_>, glyph_id: GlyphId) -> Option<Self>[src]
Returns a new outline or None when the glyph has no outline or on error.
pub fn bbox(&self) -> BBox[src]
Returns the outline bounding box.
pub fn embolden(&mut self, strength: f32)[src]
Embolden the outline.
pub fn oblique(&mut self, x_skew: f32)[src]
Slant the outline.
pub fn emit(&self, builder: &mut dyn OutlineBuilder)[src]
Emit the outline segments.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Outline[src]
impl Send for Outline[src]
impl !Sync for Outline[src]
impl Unpin for Outline[src]
impl UnwindSafe for Outline[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,