Enum tfm::pl::ast::FontDimension
source · pub enum FontDimension {
NamedParam(NamedParameter, SingleValue<Number>),
IndexedParam(TupleValue<ParameterNumber, Number>),
Comment(String),
}
Expand description
An element of a FONTDIMEN
property list.
The property names allowed in a FONTDIMEN
property list correspond to various TeX parameters,
each of which has a (real) numeric value.
All of the parameters except SLANT
are in design units.
The documentation on each variant is based on the documentation in PFtoTF.2014.11.
Variants§
NamedParam(NamedParameter, SingleValue<Number>)
A named parameters like (SLANT R -.25)
.
IndexedParam(TupleValue<ParameterNumber, Number>)
The notation PARAMETER n
provides another way to specify the nth parameter;
for example, (PARAMETER D 1 R −.25)
is another way to specify that the SLANT
is −0.25.
The value of n must be strictly positive and less than max param words.
Comment(String)
A comment that is ignored.
Implementations§
source§impl FontDimension
impl FontDimension
pub const SLANT: &'static str = "SLANT"
pub const SPACE: &'static str = "SPACE"
pub const STRETCH: &'static str = "STRETCH"
pub const SHRINK: &'static str = "SHRINK"
pub const X_HEIGHT: &'static str = "XHEIGHT"
pub const QUAD: &'static str = "QUAD"
pub const EXTRA_SPACE: &'static str = "EXTRASPACE"
pub const NUM_1: &'static str = "NUM1"
pub const NUM_2: &'static str = "NUM2"
pub const NUM_3: &'static str = "NUM3"
pub const DENOM_1: &'static str = "DENOM1"
pub const DENOM_2: &'static str = "DENOM2"
pub const SUP_1: &'static str = "SUP1"
pub const SUP_2: &'static str = "SUP2"
pub const SUP_3: &'static str = "SUP3"
pub const SUB_1: &'static str = "SUB1"
pub const SUB_2: &'static str = "SUB2"
pub const SUP_DROP: &'static str = "SUPDROP"
pub const SUB_DROP: &'static str = "SUBDROP"
pub const DELIM_1: &'static str = "DELIM1"
pub const DELIM_2: &'static str = "DELIM2"
pub const AXIS_HEIGHT: &'static str = "AXISHEIGHT"
pub const DEFAULT_RULE_THICKNESS: &'static str = "DEFAULTRULETHICKNESS"
pub const BIG_OP_SPACING_1: &'static str = "BIGOPSPACING1"
pub const BIG_OP_SPACING_2: &'static str = "BIGOPSPACING2"
pub const BIG_OP_SPACING_3: &'static str = "BIGOPSPACING3"
pub const BIG_OP_SPACING_4: &'static str = "BIGOPSPACING4"
pub const BIG_OP_SPACING_5: &'static str = "BIGOPSPACING5"
pub const PARAMETER: &'static str = "PARAMETER"
pub const ALL_PROPERTY_NAMES: &'static [&'static str] = _
source§impl FontDimension
impl FontDimension
pub fn lower(self, char_display_format: CharDisplayFormat) -> Node
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for FontDimension
impl<'arbitrary> Arbitrary<'arbitrary> for FontDimension
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Debug for FontDimension
impl Debug for FontDimension
source§impl PartialEq<FontDimension> for FontDimension
impl PartialEq<FontDimension> for FontDimension
source§fn eq(&self, other: &FontDimension) -> bool
fn eq(&self, other: &FontDimension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FontDimension
impl StructuralEq for FontDimension
impl StructuralPartialEq for FontDimension
Auto Trait Implementations§
impl RefUnwindSafe for FontDimension
impl Send for FontDimension
impl Sync for FontDimension
impl Unpin for FontDimension
impl UnwindSafe for FontDimension
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