Struct usvg::layout::PositionedGlyph
source · pub struct PositionedGlyph {
pub transform: Transform,
pub glyph_id: GlyphId,
pub text: String,
pub font: ID,
}
Expand description
A glyph that has already been positioned correctly.
Note that the transform already takes the font size into consideration, so applying the transform to the outline of the glyphs is all that is necessary to display it correctly.
Fields§
§transform: Transform
The transform of the glyph. This transform should be applied to the glyph outlines, meaning that paint servers referenced by the glyph’s span should not be affected by it.
glyph_id: GlyphId
The ID of the glyph.
text: String
The text from the original string that corresponds to that glyph.
font: ID
The ID of the font the glyph should be taken from.
Trait Implementations§
source§impl Clone for PositionedGlyph
impl Clone for PositionedGlyph
source§fn clone(&self) -> PositionedGlyph
fn clone(&self) -> PositionedGlyph
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PositionedGlyph
impl RefUnwindSafe for PositionedGlyph
impl Send for PositionedGlyph
impl Sync for PositionedGlyph
impl Unpin for PositionedGlyph
impl UnwindSafe for PositionedGlyph
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