Le 05/11/2016 à 21:25, Stephan Witt a écrit :
4/ catch the characters at the level of the row breaking algorithm 
(TextMetrics::breakRow). This should be pretty straightforward to do.

Yes, this would be the best solution. It seems so easy that I tried to
come up with a patch myself. See attached. It works for this problem -
I don’t know if its covers all possible code paths, though.

This is a more radical approach that what I have in mind, and I do not know whether it is safe. My idea was to modify the Row building code and replace the character with some visual cue (in addition with the row breaking), because I am not confident in sending this character to Qt string rendering functions.

I'll propose something shortly.

JMarc

Reply via email to