So, I ended up trying to fix this in FreeType. Have made huge progress so far. Here's a tree:
https://github.com/behdad/freetype/commits/ftthread
And here's a standalone test:
https://github.com/behdad/ftthread
There's still some more work to do. I can't yet understand this crash for example:
https://bugzilla.redhat.com/show_bug.cgi?id=1165471
So, I ended up trying to fix this in FreeType. Have made huge progress so far. Here's a tree:
https:/ /github. com/behdad/ freetype/ commits/ ftthread
And here's a standalone test:
https:/ /github. com/behdad/ ftthread
There's still some more work to do. I can't yet understand this crash for example:
https:/ /bugzilla. redhat. com/show_ bug.cgi? id=1165471