pub enum StrokeItalicSlant {
PositionLine,
GlyphBaseline,
}Expand description
How a stroke realization slants italic text: part of a
StrokeTextProfile.
Variants§
PositionLine
The realizer’s own rule: each placed point moves along x by its y (millimetres, y down, from the request’s position, after the line, alignment and script offsets) times the tilt.
GlyphBaseline
KiCad’s: each glyph’s scaled point is sheared about the glyph’s own
baseline, its top to the right, before the cursor, line and script
offsets move it (STROKE_GLYPH::Transform, point *= aGlyphSize; point.x -= point.y * aTilt; point += aOffset, common/font/glyph.cpp,
with aTilt ITALIC_TILT and aOffset the cursor,
common/font/stroke_font.cpp; KiCad 10.0.8).
Trait Implementations§
Source§impl Clone for StrokeItalicSlant
impl Clone for StrokeItalicSlant
Source§fn clone(&self) -> StrokeItalicSlant
fn clone(&self) -> StrokeItalicSlant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StrokeItalicSlant
Source§impl Debug for StrokeItalicSlant
impl Debug for StrokeItalicSlant
Source§impl Default for StrokeItalicSlant
impl Default for StrokeItalicSlant
Source§fn default() -> StrokeItalicSlant
fn default() -> StrokeItalicSlant
Returns the “default value” for a type. Read more
impl Eq for StrokeItalicSlant
Source§impl PartialEq for StrokeItalicSlant
impl PartialEq for StrokeItalicSlant
impl StructuralPartialEq for StrokeItalicSlant
Auto Trait Implementations§
impl Freeze for StrokeItalicSlant
impl RefUnwindSafe for StrokeItalicSlant
impl Send for StrokeItalicSlant
impl Sync for StrokeItalicSlant
impl Unpin for StrokeItalicSlant
impl UnsafeUnpin for StrokeItalicSlant
impl UnwindSafe for StrokeItalicSlant
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