[cairo] Announcing HarfPy

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Tue Aug 2 03:29:03 UTC 2016


Following on from my Python wrapper for FriBidi, here
<https://github.com/ldo/harfpy> is one for HarfBuzz. There are still a
lot of gaps, and only some parts of the functionality have been tested.
But I have succeeded in rendering some short text layouts using this
together with my Python bindings for FreeType and Cairo.

The main remaining piece of the Linux typography stack that does not
have a Python binding is the Unicode word/line-breaking algorithm.
There seem to be two rival implementations here:

  * libsombok, now called linefold
    <https://sourceforge.net/projects/linefold/>
  * libunibreak <https://github.com/adah1972/libunibreak>

Which would be preferable?


More information about the cairo mailing list