plottery_fonts 0.16.0

Plotter fonts bundled with Plottery: single-stroke SVG fonts, single-line TTFs and OpenType-SVG fonts, with their licences.
Documentation
1
2
3
4
5
6
7
8
9
use super::BundledFont;

#[test]
fn names_round_trip() {
    for font in BundledFont::ALL {
        assert_eq!(BundledFont::from_name(font.name()), Some(*font));
    }
    assert_eq!(BundledFont::from_name("hersheysans"), None);
}