pub struct ShapedRun {
pub glyphs: Vec<ShapedGlyph>,
pub advance_pt: f32,
}Expand description
Output of shape_text: the shaped glyph stream and the total
advance width at the requested point size.
§Examples
use mos_fonts::ShapedRun;
let run = ShapedRun {
glyphs: Vec::new(),
advance_pt: 12.0,
};
assert_eq!(run.advance_pt, 12.0);Fields§
§glyphs: Vec<ShapedGlyph>Glyphs in visual order (LTR). Empty for Base14 runs.
advance_pt: f32Total horizontal advance of the run, in PDF user-space units.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapedRun
impl RefUnwindSafe for ShapedRun
impl Send for ShapedRun
impl Sync for ShapedRun
impl Unpin for ShapedRun
impl UnsafeUnpin for ShapedRun
impl UnwindSafe for ShapedRun
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.