Le 17/07/2015 00:10, Jean-Marc Lasgouttes a écrit :
commit 83afe2e547554a537e2ea01cf85b3535bbd77e2b
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Thu Jul 16 23:18:55 2015 +0200
Rely on Row elements to draw rows.
The new version of paintText is quite short. Elements are treated one
by one. They are already in the right ordering.
In my limited testing, it works surprisingly well. I would not be
surprised though to hear that I forgot something.
Please have a go at this branch. I will still be working on it, but in
theory the rendering code is already complete.
Next on my plate, if time allows
- take a closer look at the implementation of
RowPainter::paintOnlyInsets. There are several places in RowPainter code
where I am not sure why things are done, but I kept the code as it was.
- get rid of the two remaining users of Bidi.
- make the Row tokenizer accumulate text snippets and not only words.
This will improve performance but also kerning with spaces, which is
ignored now and seems to exist in some fonts (at least on Mac OS).
- Try to improve the situation with row breaking in Chinese text.
- Let TextMetrics add more information to Row (like endlabel type?) so
that code does not need to be duplicated. Ideally, RowPainter should not
need to read the paragraphs at all.
JMarc