I tried to improve Krita to support complex text layout such as Arabic. Krita uses QPainterPath to draw text in the path by using addText method . Moreover, Add text method draws character by character on the path , so it bugs complex text layout such Arabic language . I have used QTextLayout to use QGlyphRun . In addition, QGlyphRun returns glyphIndexes and glyph positions. There is a function in QRawFont ( pathForGlyph( ) ) which can add glyph in a path.
I have attached a patch that can support complex text layout, but there is a problem with cursor position.
I don't know if you want me to complete working on it or not!, as I know krita developers will rewrite the text tools again!
Details
Details
- Reviewers
rempt
Diff Detail
Diff Detail
- Repository
- R37 Krita
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
Boudewijn has said before his holiday that anything text-related you do is going to be useful for us in the long haul(especially because we aren't as familiar with Arabic), so go crazy, just motivate what you do so we can follow along. :)