pub struct Face<BYTES = Rc<Vec<u8>>> { /* private fields */ }
Implementations§
source§impl<BYTES> Face<BYTES>
impl<BYTES> Face<BYTES>
pub unsafe fn from_raw( library_raw: FT_Library, raw: FT_Face, bytes: Option<BYTES> ) -> Self
pub fn attach_file(&self, filepathname: &str) -> FtResult<()>
pub fn reference(&self) -> FtResult<()>
pub fn set_char_size( &self, char_width: isize, char_height: isize, horz_resolution: u32, vert_resolution: u32 ) -> FtResult<()>
pub fn set_pixel_sizes( &self, pixel_width: u32, pixel_height: u32 ) -> FtResult<()>
pub fn load_glyph(&self, glyph_index: u32, load_flags: LoadFlag) -> FtResult<()>
pub fn load_char(&self, char_code: usize, load_flags: LoadFlag) -> FtResult<()>
pub fn set_transform(&self, matrix: &mut Matrix, delta: &mut Vector)
pub fn get_char_index(&self, charcode: usize) -> Option<u32>
pub fn get_name_index(&self, glyph_name: &str) -> Option<u32>
pub fn chars(&self) -> CharIterator<'_, BYTES> ⓘ
pub fn get_kerning( &self, left_char_index: u32, right_char_index: u32, kern_mode: KerningMode ) -> FtResult<Vector>
pub fn get_charmap(&self, charmap_index: isize) -> CharMap
pub fn set_charmap(&self, charmap: &CharMap) -> FtResult<()>
pub fn glyph(&self) -> &GlyphSlot
pub fn has_horizontal(&self) -> bool
pub fn has_vertical(&self) -> bool
pub fn has_kerning(&self) -> bool
pub fn is_scalable(&self) -> bool
pub fn is_sfnt(&self) -> bool
pub fn is_fixed_width(&self) -> bool
pub fn has_fixed_sizes(&self) -> bool
pub fn has_glyph_names(&self) -> bool
pub fn is_cid_keyed(&self) -> bool
pub fn is_tricky(&self) -> bool
pub fn has_color(&self) -> bool
pub fn raw(&self) -> &FT_FaceRec
pub fn raw_mut(&mut self) -> &mut FT_FaceRec
pub fn ascender(&self) -> FT_Short
pub fn num_charmaps(&self) -> i32
pub fn descender(&self) -> FT_Short
pub fn em_size(&self) -> FT_Short
pub fn height(&self) -> FT_Short
pub fn max_advance_width(&self) -> FT_Short
pub fn max_advance_height(&self) -> FT_Short
pub fn underline_position(&self) -> FT_Short
pub fn underline_thickness(&self) -> FT_Short
pub fn num_faces(&self) -> FT_Short
pub fn num_glyphs(&self) -> FT_Long
pub fn family_name(&self) -> Option<String>
pub fn style_name(&self) -> Option<String>
pub fn style_flags(&self) -> StyleFlag
pub fn size_metrics(&self) -> Option<FT_Size_Metrics>
pub fn postscript_name(&self) -> Option<String>
Trait Implementations§
source§impl<BYTES: PartialEq> PartialEq for Face<BYTES>
impl<BYTES: PartialEq> PartialEq for Face<BYTES>
impl<BYTES: Eq> Eq for Face<BYTES>
impl<BYTES> StructuralPartialEq for Face<BYTES>
Auto Trait Implementations§
impl<BYTES> RefUnwindSafe for Face<BYTES>where
BYTES: RefUnwindSafe,
impl<BYTES = Rc<Vec<u8>>> !Send for Face<BYTES>
impl<BYTES = Rc<Vec<u8>>> !Sync for Face<BYTES>
impl<BYTES> Unpin for Face<BYTES>where
BYTES: Unpin,
impl<BYTES> UnwindSafe for Face<BYTES>where
BYTES: 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