Crate glifparser

source ·
Expand description

A parser and writer for UFO .glif files.

© 2020–2022 Fredrick R. Brennan and MFEK Authors

glifparser supports the entire .glif spec as of 12 April 2021.

glifparser is not norad and is not meant to implement the UFO spec.

Re-exports

Modules

  • .glif <anchor> + ufo2ft _ mark/base determination
  • impl’s/struct for shared <image>/<guideline>/layer color behavior
  • .glif <component>
  • Provides main error type GlifParserError & its impl’s
  • Glif (<glif> toplevel), read/write modules, + Lib
  • .glif <guideline>
  • .glif <image> w/ability to read to a bitmap if filename valid
  • Shared behavior between <component>, <image> based on PostScript-style matrices of 6 values
  • .glif <outline> and <contour>
  • When reading .glif files, how strict ought we to be? Can we make fixes to bad input, or ought we to error out and make the user do it?
  • .glif <point>
  • Enforcers for UFO format string rules — no control characters (GlifString), len ≥ 0 (GlifStringLenOne)

Enums

Traits