Struct freetype::face::Face
[−]
[src]
pub struct Face<'a> { // some fields omitted }
Methods
impl<'a> Face<'a>
[src]
unsafe fn from_raw(library_raw: FT_Library, raw: FT_Face) -> Self
fn attach_file(&self, filepathname: &str) -> FtResult<()>
fn reference(&self) -> FtResult<()>
fn set_char_size(&self, char_width: isize, char_height: isize, horz_resolution: u32, vert_resolution: u32) -> FtResult<()>
fn set_pixel_sizes(&self, pixel_width: u32, pixel_height: u32) -> FtResult<()>
fn load_glyph(&self, glyph_index: u32, load_flags: LoadFlag) -> FtResult<()>
fn load_char(&self, char_code: usize, load_flags: LoadFlag) -> FtResult<()>
fn set_transform(&self, matrix: &mut Matrix, delta: &mut Vector)
fn get_char_index(&self, charcode: usize) -> u32
fn get_kerning(&self, left_char_index: u32, right_char_index: u32, kern_mode: KerningMode) -> FtResult<Vector>
fn glyph(&self) -> &GlyphSlot
fn has_horizontal(&self) -> bool
fn has_vertical(&self) -> bool
fn has_kerning(&self) -> bool
fn is_scalable(&self) -> bool
fn is_sfnt(&self) -> bool
fn is_fixed_width(&self) -> bool
fn has_fixed_sizes(&self) -> bool
fn has_glyph_names(&self) -> bool
fn is_cid_keyed(&self) -> bool
fn is_tricky(&self) -> bool
fn has_color(&self) -> bool
fn raw(&self) -> &FT_FaceRec
fn raw_mut(&mut self) -> &mut FT_FaceRec
fn ascender(&self) -> FT_Short
fn descender(&self) -> FT_Short
fn em_size(&self) -> FT_Short
fn height(&self) -> FT_Short
fn max_advance_width(&self) -> FT_Short
fn max_advance_height(&self) -> FT_Short
fn underline_position(&self) -> FT_Short
fn underline_thickness(&self) -> FT_Short
fn family_name(&self) -> Option<String>
fn style_name(&self) -> Option<String>
fn size_metrics(&self) -> Option<FT_Size_Metrics>
fn postscript_name(&self) -> Option<String>
Trait Implementations
impl<'a> Hash for Face<'a>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<'a> PartialEq for Face<'a>
[src]
fn eq(&self, __arg_0: &Face<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Face<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for Face<'a>
[src]
impl<'a> Clone for Face<'a>
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more