pub enum LineHeight {
Normal,
Length(Length),
Percent(Percent),
}Expand description
20.204 fo:line-height
See §7.15.4 of XSL.
The value normal activates the default line height calculation. The value of this attribute can be a length, a percentage, normal.
In the OpenDocument XSL-compatible namespace, the fo:line-height attribute does not support the inherit, number, and space values.
The defined values for the fo:line-height attribute are:
- a value of type nonNegativeLength 18.3.20
- normal: disables the effects of style:line-height-at-least 20.317 and style:line-spacing 20.318.
- a value of type percent 18.3.23
Variants§
Implementations§
Source§impl LineHeight
impl LineHeight
Sourcepub fn is_positive(&self) -> bool
pub fn is_positive(&self) -> bool
Is the fontsize positive. Percentage is always positive.
Trait Implementations§
Source§impl Clone for LineHeight
impl Clone for LineHeight
Source§fn clone(&self) -> LineHeight
fn clone(&self) -> LineHeight
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineHeight
impl Debug for LineHeight
Source§impl Display for LineHeight
impl Display for LineHeight
Source§impl From<Length> for LineHeight
impl From<Length> for LineHeight
Source§impl From<Percent> for LineHeight
impl From<Percent> for LineHeight
Source§impl PartialEq for LineHeight
impl PartialEq for LineHeight
impl Copy for LineHeight
impl StructuralPartialEq for LineHeight
Auto Trait Implementations§
impl Freeze for LineHeight
impl RefUnwindSafe for LineHeight
impl Send for LineHeight
impl Sync for LineHeight
impl Unpin for LineHeight
impl UnwindSafe for LineHeight
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