Hello people,
I'm in the process of developing an application that uses Skia for its font rendering - amongst others - and have a particular enquiry about UTF8 text. While it renders the individual characters without any trouble but when it comes to Arabic & Hebrew amongst others, it's still rendering left to right. There is a flag to indicate whether the text is vertical or not, but not LTR or RTL.
Now, as far as I understand, there needs to be something that does the shaping of the text to ensure that the letters are positioned correctly. I am somewhat confused over whose responsibility that is. In the Skia build tree there is a Harfbuzz external dependency and that is a font layout library. However, it doesn't seem to be referenced anywhere and I didn't find any build flags that would enable it. Passing in the Unicode RTL or RTO codes don't seem to make much difference.
Additionally, there's this old issue:
https://code.google.com/p/skia/issues/detail?id=58It states that whoever uses Skia is responsible for externally positioning the glyphs and rendering them at the correct positions. Is this still correct?
Further searches on the web do reveal references to Harfbuzz in Chromium and WebCore*, which lead me to believe the latter is true.
Can someone help shed a little bit of light?
Thanks,
W
*:
http://www.opensource.apple.com/source/WebCore/WebCore-658.28/platform/graphics/chromium/HarfbuzzSkia.cpp