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