Re:Libschrift: A lightweight TrueType font rendering library
by mfabbri77 on Tuesday April 21, 2020 @05:11AM
(#22933278)
is there a small C library to read ttf glyphs geometry without the rendering part?
[ Parent
| on HN ]
Re:Libschrift: A lightweight TrueType font rendering library
by flohofwoe on Tuesday April 21, 2020 @06:14AM
(#22933564)
Check out stb_truetype.h, at the core it's a glyph rasterizer, but I guess the code to get at the outline must be in there somewhere and would be easy to extract (or by adding another API function).
https://github.com/nothings/stb/blob/master/stb_truetype.h
PS: looks like it's here:
https://github.com/nothings/stb/blob/f54acd4e13430c5122cab4c...