pub struct DocStyle {
pub base: Font,
pub base_points: f64,
}Expand description
A document’s base style: the font a run says nothing about, and the size everything else is relative to. Import needs it to place headings and code; export needs it to know what not to write.
Fields§
§base: Font§base_points: f64The point size base resolves to, for formats that speak in absolute sizes (RTF’s
half-points, HTML’s px). Only used to convert their sizes to a FontSpec::scale and
back, so an imprecise value costs relative accuracy, not correctness.
Implementations§
Trait Implementations§
impl Copy for DocStyle
impl StructuralPartialEq for DocStyle
Auto Trait Implementations§
impl Freeze for DocStyle
impl RefUnwindSafe for DocStyle
impl Send for DocStyle
impl Sync for DocStyle
impl Unpin for DocStyle
impl UnsafeUnpin for DocStyle
impl UnwindSafe for DocStyle
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