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.