[][src]Struct rustybuzz::Face

pub struct Face<'a> { /* fields omitted */ }

A font face handle.

Implementations

impl<'a> Face<'a>[src]

pub fn from_slice(data: &'a [u8], face_index: u32) -> Option<Self>[src]

Creates a new Face from data.

Data will be referenced, not owned.

pub fn set_pixels_per_em(&mut self, ppem: Option<(u16, u16)>)[src]

Sets pixels per EM.

Used during raster glyphs processing and hinting.

None by default.

pub fn set_points_per_em(&mut self, ptem: Option<f32>)[src]

Sets point size per EM.

Used for optical-sizing in Apple fonts.

None by default.

pub fn set_variations(&mut self, variations: &[Variation])[src]

Sets font variations.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Face<'a>

impl<'a> Send for Face<'a>

impl<'a> Sync for Face<'a>

impl<'a> Unpin for Face<'a>

impl<'a> UnwindSafe for Face<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.