kb_text_shape 2.28 is out and includes support for variable fonts among many other fixes!
https://github.com/JimmyLefevre/kb
https://code.newroadoldway.com/home
&kbts

View full feed

kb_text_shape is a C library for Unicode segmentation and OpenType shaping. In essence, it contains all of the functionality you need to go from a Unicode string and a font file to a list of glyphs with positions, hopefully in an easy-to-integrate package. You can use the easy context API, or manage all of your data yourself. You can allocate all memory yourself if you want to. Drawing and line wrapping not included!

If you would like to learn more, you can find more explanation in my blog post: https://www.newroadoldway.com/text1.html or in the comment at the top of the library itself.

License: zlib (very permissive!)

AI Policy

None used.