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