Enum tfm::format::ValidationWarning
source · pub enum ValidationWarning {
Show 24 variants
DesignSizeIsTooSmall,
DesignSizeIsNegative,
StringIsTooLong(usize),
StringContainsParenthesis,
StringContainsNonstandardAsciiCharacter(char),
ParameterIsTooBig(usize),
UnusualNumberOfParameters {
is_math_symbols_font: bool,
got: usize,
},
InvalidCharacterInExtensibleRecipe(Char),
InvalidWidthIndex(Char, u8),
InvalidHeightIndex(Char, u8),
InvalidDepthIndex(Char, u8),
InvalidItalicCorrectionIndex(Char, u8),
InvalidExtensibleRecipeIndex(Char, u8),
FirstWidthIsNonZero,
FirstDepthIsNonZero,
FirstHeightIsNonZero,
FirstItalicCorrectionIsNonZero,
WidthIsTooBig(usize),
HeightIsTooBig(usize),
DepthIsTooBig(usize),
ItalicCorrectionIsTooBig(usize),
KernIsTooBig(usize),
NextLargerWarning(NextLargerProgramWarning),
LigKernWarning(ValidationWarning),
}
Variants§
DesignSizeIsTooSmall
DesignSizeIsNegative
StringIsTooLong(usize)
StringContainsParenthesis
StringContainsNonstandardAsciiCharacter(char)
ParameterIsTooBig(usize)
UnusualNumberOfParameters
Fields
Unusual number of parameters.
Math symbol fonts usually contain 22 parameters and math extension fonts 13. This warning indicates that a different number was in the .tfm file.
InvalidCharacterInExtensibleRecipe(Char)
InvalidWidthIndex(Char, u8)
InvalidHeightIndex(Char, u8)
InvalidDepthIndex(Char, u8)
InvalidItalicCorrectionIndex(Char, u8)
InvalidExtensibleRecipeIndex(Char, u8)
FirstWidthIsNonZero
FirstDepthIsNonZero
FirstHeightIsNonZero
FirstItalicCorrectionIsNonZero
WidthIsTooBig(usize)
HeightIsTooBig(usize)
DepthIsTooBig(usize)
ItalicCorrectionIsTooBig(usize)
KernIsTooBig(usize)
NextLargerWarning(NextLargerProgramWarning)
LigKernWarning(ValidationWarning)
Implementations§
source§impl ValidationWarning
impl ValidationWarning
sourcepub fn tftopl_message(&self) -> String
pub fn tftopl_message(&self) -> String
Returns the warning message the TFtoPL program prints for this kind of error.
sourcepub fn tftopl_section(&self) -> u8
pub fn tftopl_section(&self) -> u8
Returns the section in Knuth’s TFtoPL (version 2014) in which this warning occurs.
sourcepub fn tfm_file_modified(&self) -> bool
pub fn tfm_file_modified(&self) -> bool
Returns true if this warning means the .tfm file was modified.
Trait Implementations§
source§impl Debug for ValidationWarning
impl Debug for ValidationWarning
source§impl PartialEq<ValidationWarning> for ValidationWarning
impl PartialEq<ValidationWarning> for ValidationWarning
source§fn eq(&self, other: &ValidationWarning) -> bool
fn eq(&self, other: &ValidationWarning) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ValidationWarning
impl StructuralEq for ValidationWarning
impl StructuralPartialEq for ValidationWarning
Auto Trait Implementations§
impl RefUnwindSafe for ValidationWarning
impl Send for ValidationWarning
impl Sync for ValidationWarning
impl Unpin for ValidationWarning
impl UnwindSafe for ValidationWarning
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