Qt 4.4’s Complex Text Handling based on Harfbuzz

· by Simon Hausmann · 1 min read · original post ↗

·

A while ago I blogged about the ongoing work to add support for complex text shaping to the Harfbuzz library. After we have ported Qt’s text shapers down to the Harfbuzz library level we worked on making Qt use them through the new interface. Now we have finally completed the porting for all supported platforms and merged all the changes back into Qt 4.4, which is also available through the public snapshots. We use the new code on all platforms except Mac OS X where we continue to use ATSUI. That is because the fonts shipped with Mac OS X provide only AAT tables instead of OpenType. On Windows we were able to eliminate the use of Uniscribe in favour of Harfbuzz. That speeds up the text handling and allowed us to get rid of a lot of code including workarounds for bugs in Uniscribe.

So in my last blog about Harfbuzz I mentioned the tasty southern indian food we ate at this little Sri Lankian place we found here in Oslo. The food was so good that I tried to make it myself - together with a good friend. Below is a picture of a plate full of freshly fried Vadai

Picture of self-made Vadai .

With Qt the word Vadai rendered in Tamil looks like this: Vadai (வடை) rendered with Qt 4.4

Qt

More on Qt

More from Simon Hausmann