Struct freetypegl::TextureGlyph[][src]

pub struct TextureGlyph { /* fields omitted */ }

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

impl Debug for TextureGlyph[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.