pub struct Header {
pub checksum: Option<u32>,
pub design_size: Number,
pub design_size_valid: bool,
pub character_coding_scheme: Option<String>,
pub font_family: Option<String>,
pub seven_bit_safe: Option<bool>,
pub face: Option<Face>,
pub additional_data: Vec<u32>,
}
Expand description
The TFM header, which contains metadata about the file.
This is defined in TFtoPL.2014.10.
Fields§
§checksum: Option<u32>
The font checksum, if specified.
In .tfm files checksums are always specified because the format has no way to omit a checksum.
In .pl files checksums are specified if the CHECKSUM
node appears.
If no checksum is specified in a .pl file, pltotf calculates the
correct value and writes that.
In TeX82, this is stored in the font_check
array (TeX82.2021.549).
design_size: Number
In TeX82, this is stored in the font_dsize
array (TeX82.2021.549).
design_size_valid: bool
§character_coding_scheme: Option<String>
§font_family: Option<String>
§seven_bit_safe: Option<bool>
§face: Option<Face>
§additional_data: Vec<u32>
The TFM format allows the header to contain arbitrary additional data.
Implementations§
source§impl Header
impl Header
sourcepub fn pl_default() -> Header
pub fn pl_default() -> Header
Returns the default header when parsing property list files.
This is defined in PLtoTF.2014.70.
sourcepub fn tfm_default() -> Header
pub fn tfm_default() -> Header
Returns the default header when parsing .tfm files.
This is defined in PLtoTF.2014.70.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)