kb_text_shape.h - "Single-header C/C++ text segmentation and shaping in ~22kloc" https://github.com/JimmyLefevre/kb (FYI @MikkoMononen)
GitHub - JimmyLefevre/kb: kb single-header C/C++ libraries

kb single-header C/C++ libraries. Contribute to JimmyLefevre/kb development by creating an account on GitHub.

GitHub
@aras @MikkoMononen text-shaping newbie question: what benefit would i gain from using this instead of harbuzz?
@JamesWidman @aras It is smaller (if that matters), and also code for figuring out the bidi runs and word/line breaks.
@MikkoMononen @aras ah, i see: harfbuzz does shaping, but not segmentation
@MikkoMononen @JamesWidman @aras maybe also the opposite question (besides the noted caveat about no rasterization): what does Hardbuzz do that this doesn't / can't?
@PythagoRascal @JamesWidman @aras probably a lot of backwards compatibility stuff, and it has also API to get font metrics, glyph outlines. Metrics needed for font selection and layout, glyph stuff for rendering.

@MikkoMononen @PythagoRascal @aras also, i would imagine that, because HarfBuzz is so widely used & tested, it may handle some corner cases that kb does not...?

In which case, i might not want to depend on kb in the feature-complete version of a shipping product...

*However*, if i'm in a rapid-prototyping phase, or just doing some quick one-off experiments, then i might gladly sacrifice HarfBuzz's completeness in exchange for the relative ease of dropping kb's one small header into my src dir.