Enum printpdf::ctm::TextMatrix
source · [−]pub enum TextMatrix {
Rotate(f64),
Translate(Pt, Pt),
TranslateRotate(Pt, Pt, f64),
Raw([f64; 6]),
}
Expand description
Text matrix. Text placement is a bit different, but uses the same concepts as a CTM that’s why it’s merged here
Note: TextScale
does not exist. Use layer.set_word_spacing()
and layer.set_character_spacing()
to specify the scaling between words
and characters.
Variants
Rotate(f64)
Text rotation matrix, used for rotating text
Translate(Pt, Pt)
Text translate matrix, used for indenting (transforming) text (different to regular text placement)
TranslateRotate(Pt, Pt, f64)
Combined translate + rotate matrix
Raw([f64; 6])
Raw matrix (/tm operator)
Trait Implementations
sourceimpl Clone for TextMatrix
impl Clone for TextMatrix
sourcefn clone(&self) -> TextMatrix
fn clone(&self) -> TextMatrix
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TextMatrix
impl Debug for TextMatrix
sourceimpl Into<Operation> for TextMatrix
impl Into<Operation> for TextMatrix
impl Copy for TextMatrix
Auto Trait Implementations
impl RefUnwindSafe for TextMatrix
impl Send for TextMatrix
impl Sync for TextMatrix
impl Unpin for TextMatrix
impl UnwindSafe for TextMatrix
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more