Struct freetype::face::Face[][src]

pub struct Face { /* fields omitted */ }

Implementations

impl Face[src]

pub unsafe fn from_raw(
    library_raw: FT_Library,
    raw: FT_Face,
    bytes: Option<Rc<Vec<u8>>>
) -> Self
[src]

pub fn attach_file(&self, filepathname: &str) -> FtResult<()>[src]

pub fn reference(&self) -> FtResult<()>[src]

pub fn set_char_size(
    &self,
    char_width: isize,
    char_height: isize,
    horz_resolution: u32,
    vert_resolution: u32
) -> FtResult<()>
[src]

pub fn set_pixel_sizes(
    &self,
    pixel_width: u32,
    pixel_height: u32
) -> FtResult<()>
[src]

pub fn load_glyph(&self, glyph_index: u32, load_flags: LoadFlag) -> FtResult<()>[src]

pub fn load_char(&self, char_code: usize, load_flags: LoadFlag) -> FtResult<()>[src]

pub fn set_transform(&self, matrix: &mut Matrix, delta: &mut Vector)[src]

pub fn get_char_index(&self, charcode: usize) -> u32[src]

pub fn get_kerning(
    &self,
    left_char_index: u32,
    right_char_index: u32,
    kern_mode: KerningMode
) -> FtResult<Vector>
[src]

pub fn glyph(&self) -> &GlyphSlot[src]

pub fn has_horizontal(&self) -> bool[src]

pub fn has_vertical(&self) -> bool[src]

pub fn has_kerning(&self) -> bool[src]

pub fn is_scalable(&self) -> bool[src]

pub fn is_sfnt(&self) -> bool[src]

pub fn is_fixed_width(&self) -> bool[src]

pub fn has_fixed_sizes(&self) -> bool[src]

pub fn has_glyph_names(&self) -> bool[src]

pub fn is_cid_keyed(&self) -> bool[src]

pub fn is_tricky(&self) -> bool[src]

pub fn has_color(&self) -> bool[src]

pub fn raw(&self) -> &FT_FaceRec[src]

pub fn raw_mut(&mut self) -> &mut FT_FaceRec[src]

pub fn ascender(&self) -> FT_Short[src]

pub fn descender(&self) -> FT_Short[src]

pub fn em_size(&self) -> FT_Short[src]

pub fn height(&self) -> FT_Short[src]

pub fn max_advance_width(&self) -> FT_Short[src]

pub fn max_advance_height(&self) -> FT_Short[src]

pub fn underline_position(&self) -> FT_Short[src]

pub fn underline_thickness(&self) -> FT_Short[src]

pub fn num_faces(&self) -> FT_Short[src]

pub fn family_name(&self) -> Option<String>[src]

pub fn style_name(&self) -> Option<String>[src]

pub fn style_flags(&self) -> StyleFlag[src]

pub fn size_metrics(&self) -> Option<FT_Size_Metrics>[src]

pub fn postscript_name(&self) -> Option<String>[src]

Trait Implementations

impl Clone for Face[src]

impl Debug for Face[src]

impl Drop for Face[src]

impl Eq for Face[src]

impl Hash for Face[src]

impl PartialEq<Face> for Face[src]

impl StructuralEq for Face[src]

impl StructuralPartialEq for Face[src]

Auto Trait Implementations

impl !RefUnwindSafe for Face

impl !Send for Face

impl !Sync for Face

impl Unpin for Face

impl UnwindSafe for Face

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.