Struct harfbuzz_rs::GlyphBuffer
[−]
[src]
pub struct GlyphBuffer(_);
A GlyphBuffer
contains the resulting output information of the shaping process.
An object of this type is obtained through the shape
function of a UnicodeBuffer
.
Methods
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 into_raw(self) -> *mut hb_buffer_t
[src]
Converts this buffer to a raw harfbuzz object pointer.
pub fn is_empty(&self) -> bool
[src]
Returns true
if the buffer contains no elements.
pub fn get_glyph_positions(&self) -> &[GlyphPosition]
[src]
Get the glyph positions.
pub fn get_glyph_infos(&self) -> &[GlyphInfo]
[src]
Get the glyph infos.
pub fn reverse(&mut self)
[src]
Reverse the Buffer
's contents.
pub fn reverse_range(&mut self, start: usize, end: usize)
[src]
Reverse the Buffer
's contents in the range from start
to end
.
pub fn clear(self) -> UnicodeBuffer
[src]
Clears the contents of the glyph buffer and returns an empty UnicodeBuffer
reusing the
existing allocation.