pub struct TextState {
pub font: Option<Arc<dyn Font>>,
pub size: f64,
pub char_spacing: f64,
pub word_spacing: f64,
pub horizontal_scaling: f64,
pub leading: f64,
pub rise: f64,
pub render_mode: i64,
}Expand description
The text state (§9.3).
Fields§
§font: Option<Arc<dyn Font>>The current font.
size: f64Font size (Tf).
char_spacing: f64Character spacing (Tc).
word_spacing: f64Word spacing (Tw).
horizontal_scaling: f64Horizontal scaling as a fraction (Tz / 100).
leading: f64Leading (TL).
rise: f64Rise (Ts).
render_mode: i64Rendering mode (Tr); 3 is invisible (OCR text layers).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TextState
impl !UnwindSafe for TextState
impl Freeze for TextState
impl Send for TextState
impl Sync for TextState
impl Unpin for TextState
impl UnsafeUnpin for TextState
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