Hello
For a while now I have been working on tatfi, a font parsing library in Zig. It is a port of the great ttf_parser Rust library.
It is almost stateless, almost allocation-free. Aims to be completely safe from memory corruption and panics. Obviously Zig doesn’t have the same guarantees as Rust, but I promise I did my best! If you find any panics please report them as bugs.
It is still a work on progress, with the API surface not replicated yet, and the library not “ziggified” yet. I am still yet also to port tests. Any help in this regard is appreciated.
The library needs users to know where the holes are. It should already be usable for most uses including rasterization, and, if you dare, shaping.
It compiles fine in 0.15.2 and master, so far.
Please have fun. If you do something cool with the library, please let me know so I can add it to the README.