Struct fonts::shaper::ShapedGlyphData
source · pub struct ShapedGlyphData {
count: usize,
glyph_infos: *mut hb_glyph_info_t,
pos_infos: *mut hb_glyph_position_t,
}
Fields§
§count: usize
§glyph_infos: *mut hb_glyph_info_t
§pos_infos: *mut hb_glyph_position_t
Implementations§
source§impl ShapedGlyphData
impl ShapedGlyphData
sourcepub unsafe fn new(buffer: *mut hb_buffer_t) -> ShapedGlyphData
pub unsafe fn new(buffer: *mut hb_buffer_t) -> ShapedGlyphData
Create a new ShapedGlyphData
from the given HarfBuzz buffer.
§Safety
Passing an invalid buffer pointer to this function results in undefined behavior.
fn byte_offset_of_glyph(&self, i: usize) -> u32
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
sourcepub fn entry_for_glyph(&self, i: usize, y_pos: &mut Au) -> ShapedGlyphEntry
pub fn entry_for_glyph(&self, i: usize, y_pos: &mut Au) -> ShapedGlyphEntry
Returns shaped glyph data for one glyph, and updates the y-position of the pen.
Auto Trait Implementations§
impl Freeze for ShapedGlyphData
impl RefUnwindSafe for ShapedGlyphData
impl !Send for ShapedGlyphData
impl !Sync for ShapedGlyphData
impl Unpin for ShapedGlyphData
impl UnwindSafe for ShapedGlyphData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert