Struct freetypegl::TextureGlyph [−][src]
pub struct TextureGlyph { /* fields omitted */ }
Implementations
impl TextureGlyph
[src]
impl TextureGlyph
[src]pub fn kerning(&self, c: char) -> f32
[src]
pub fn codepoint(&self) -> u32
[src]
Unicode codepoint this glyph represents in UTF-32 LE encoding.
pub fn glyph_id(&self) -> u32
[src]
Unicode codepoint this glyph represents in UTF-32 LE encoding.
pub fn width(&self) -> usize
[src]
Glyph’s width in pixels.
pub fn height(&self) -> usize
[src]
Glyph’s height in pixels.
pub fn offset_x(&self) -> i32
[src]
Glyph’s left bearing expressed in integer pixels.
pub fn offset_y(&self) -> i32
[src]
Glyphs’s top bearing expressed in integer pixels.
Remember that this is the distance from the baseline to the top-most glyph scanline, upwards y coordinates being positive.
pub fn advance_x(&self) -> f32
[src]
For horizontal text layouts, this is the horizontal distance (in fractional pixels) used to increment the pen position when the glyph is drawn as part of a string of text.
pub fn advance_y(&self) -> f32
[src]
For vertical text layouts, this is the vertical distance (in fractional pixels) used to increment therendermode_t pen position when the glyph is drawn as part of a string of text.
pub fn s0(&self) -> f32
[src]
First normalized texture coordinate (x) of top-left corner
pub fn t0(&self) -> f32
[src]
Second normalized texture coordinate (y) of top-left corner
pub fn s1(&self) -> f32
[src]
First normalized texture coordinate (x) of bottom-right corner
pub fn t1(&self) -> f32
[src]
Second normalized texture coordinate (y) of bottom-right corner
pub fn rendermode(&self) -> RenderMode
[src]
Mode this glyph was rendered
pub fn outline_thickness(&self) -> f32
[src]
Glyph outline thickness