pub enum Character {
Width(SingleValue<Option<Number>>),
Height(SingleValue<Number>),
Depth(SingleValue<Number>),
ItalicCorrection(SingleValue<Number>),
NextLarger(SingleValue<Char>),
ExtensibleCharacter(Branch<(), ExtensibleCharacter>),
Comment(String),
}
Expand description
An element of a CHARACTER
property list.
The documentation on each variant is based on the documentation in PFtoTF.2014.12.
Variants§
Width(SingleValue<Option<Number>>)
The character’s width in design units.
Height(SingleValue<Number>)
The character’s height in design units.
Depth(SingleValue<Number>)
The character’s depth in design units.
ItalicCorrection(SingleValue<Number>)
The character’s italic correction in design units.
NextLarger(SingleValue<Char>)
Specifies the character that follows the present one in a “charlist.” The value must be the number of a character in the font, and there must be no infinite cycles of supposedly larger and larger characters.
ExtensibleCharacter(Branch<(), ExtensibleCharacter>)
Specifies an extensible character.
This option and NEXTLARGER
are mutually exclusive;
i.e., they cannot both be used within the same CHARACTER
list.
Comment(String)
A comment that is ignored.
Implementations§
source§impl Character
impl Character
pub const WIDTH: &'static str = "CHARWD"
pub const HEIGHT: &'static str = "CHARHT"
pub const DEPTH: &'static str = "CHARDP"
pub const ITALIC_CORRECTION: &'static str = "CHARIC"
pub const NEXT_LARGER: &'static str = "NEXTLARGER"
pub const EXTENSIBLE_CHARACTER: &'static str = "VARCHAR"
pub const ALL_PROPERTY_NAMES: &'static [&'static str] = _
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for Character
impl<'arbitrary> Arbitrary<'arbitrary> for Character
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 PartialEq<Character> for Character
impl PartialEq<Character> for Character
impl Eq for Character
impl StructuralEq for Character
impl StructuralPartialEq for Character
Auto Trait Implementations§
impl RefUnwindSafe for Character
impl Send for Character
impl Sync for Character
impl Unpin for Character
impl UnwindSafe for Character
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