#[non_exhaustive]pub struct TextStyle {
pub font: FontId,
pub fallback: [FontId; 4],
pub fallbacks: u32,
pub height: f64,
pub width: f64,
pub oblique: f64,
pub unit: Unit,
}Expand description
DXF’s STYLE: how texts of it look. Made with new and changed field by field (it may grow)
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.font: FontId§fallback: [FontId; 4]fonts for what font lacks, tried in this order per run of one script (the first fallbacks)
fallbacks: u32§height: f64a fixed cap height (0: each text says its own), in units
width: f64how much wider than the font (1: as it is)
oblique: f64how far the glyphs lean, radians from upright (positive: to the right)
unit: UnitDrawing: heights in drawing units, the text zooms with the drawing; Px: pixels, the text keeps its size on the screen
Implementations§
Trait Implementations§
impl Copy for TextStyle
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Forget for TextStyle
impl Freeze for TextStyle
impl Move for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
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