[−][src]Struct freetypegl::TextureGlyph
Implementations
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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TextureGlyph
impl !Send for TextureGlyph
impl !Sync for TextureGlyph
impl Unpin for TextureGlyph
impl UnwindSafe for TextureGlyph
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,
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, 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.
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>,