postscript 0.19.0

The package provides a parser of PostScript fonts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::Result;

index! {
    @define
    /// A character-string index.
    pub CharacterStrings
}

impl crate::walue::Read<'static> for CharacterStrings {
    type Parameter = i32;

    fn read<T: crate::tape::Read>(tape: &mut T, format: i32) -> Result<Self> {
        Ok(match format {
            2 => CharacterStrings(tape.take()?),
            format => raise!("found an unknown format of character strings ({format})"),
        })
    }
}