pub struct Type1FontFile {
pub program: Vec<u8>,
pub length1: u32,
pub length2: u32,
pub length3: u32,
}Expand description
A Type 1 program as a PDF /FontFile stream: the bytes to store, and the
ISO 32000-1 §9.9 table 127 lengths that partition them.
The two are produced together because table 127 defines the three lengths
as a partition of the stream’s decoded data — /Length1 the clear-text
portion, /Length2 the encrypted portion, /Length3 the fixed-content
(cleartomark) portion — so computing lengths for one byte string and
storing another is the defect this type exists to make unrepresentable.
Fields§
§program: Vec<u8>The bytes to write as the stream’s decoded data. length1 + length2 + length3 == program.len() always holds.
length1: u32Bytes of clear-text ASCII, up to and including the eexec line.
length2: u32Bytes of the eexec-encrypted private portion, in whatever form it is
stored — binary for a PFB, and still hexadecimal for a PFA whose
private portion was written that way, which §9.9 permits.
length3: u32Bytes of the fixed 512-zeros-plus-cleartomark trailer, 0 when the
program carries none.