[][src]Struct rustybuzz::GlyphBuffer

pub struct GlyphBuffer(_);

A buffer that contains the results of the shaping process.

Implementations

impl GlyphBuffer[src]

pub fn len(&self) -> usize[src]

Returns the length of the data of the buffer.

When called before shaping this is the number of unicode codepoints contained in the buffer. When called after shaping it returns the number of glyphs stored.

pub fn is_empty(&self) -> bool[src]

Returns true if the buffer contains no elements.

pub fn glyph_infos(&self) -> &[GlyphInfo][src]

Get the glyph infos.

pub fn glyph_positions(&self) -> &[GlyphPosition][src]

Get the glyph positions.

pub fn clear(self) -> UnicodeBuffer[src]

Clears the content of the glyph buffer and returns an empty UnicodeBuffer reusing the existing allocation.

pub fn serialize(&self, face: &Face<'_>, flags: SerializeFlags) -> String[src]

Converts the glyph buffer content into a string.

Trait Implementations

impl Debug for GlyphBuffer[src]

Auto Trait Implementations

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.