These days I would use HarfBuzz/stb_truetype [1] for a lightweight thing. Use FreeType if you need something even fancier.
[0] https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/H... [1] like https://gist.github.com/rygorous/6f2779a451d2040371e3acb79e1...
These days I would use HarfBuzz/stb_truetype [1] for a lightweight thing. Use FreeType if you need something even fancier.
[0] https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/H... [1] like https://gist.github.com/rygorous/6f2779a451d2040371e3acb79e1...