Struct freetype::face::Face [−][src]
Implementations
impl Face
[src]
pub unsafe fn from_raw(
library_raw: FT_Library,
raw: FT_Face,
bytes: Option<Rc<Vec<u8>>>
) -> Self
[src]
library_raw: FT_Library,
raw: FT_Face,
bytes: Option<Rc<Vec<u8>>>
) -> Self
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]
&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<()>
[src]
&self,
pixel_width: u32,
pixel_height: u32
) -> FtResult<()>
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]
&self,
left_char_index: u32,
right_char_index: u32,
kern_mode: KerningMode
) -> FtResult<Vector>
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]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Face
[src]
impl Drop for Face
[src]
impl Eq for Face
[src]
impl Hash for Face
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
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>,