07/05/2014 00:06, Enrico Forestieri:
On Tue, May 06, 2014 at 09:44:04PM +0200, Jean-Marc Lasgouttes wrote:

To say things differently, I searched without success for an
application that uses a specific text color for selection _and_ is
able to handle ligatures/kerning properly. Just try the str-metrics
branch and play with selection and you will understand what the
problem is.

I just tried it. I loaded an old document and searched for ligatures
such as "ff" or "fi" but everything I found does not seems to be a
ligature and I don't see any of the reported problems.

Try to use a modern font like Dejavu Serif, or maybe Garamond on windows. Do you see some kerning? For example, in the string "AV", the bottom of the A should overlap with the top of the V. In such a case, when a selection ends between the A and the V, two strings have to be drawn separately and thus the kerning is broken. This causes the part starting with V to nudge a bit to the right.

The text changes color only when "Use system colors" is selected, but
it suffices not doing that for avoiding it ;)

Actually, the text always changes color. In you case it changes from balck to black. But math changes from blue to black. Change tracking becomes black too. ERT text becomes black too. Do you see what I mean?

Even in this respect I don't see any difference with master, if not
for the fact that in the str-metrics branch the selection seems to
be slightly lagging behind the cursor.

Interesting, I'll have a look. I have not done any profiling yes. Are you sure that the lag is worse than with master?

Out of curiosity I then tried libreoffice and noticed that the selection
is very similar to the LyX way when "Use system colors" is not checked.

Up to a certain point (see above), yes.

I used Qt 5.2.1 but I don't think it makes any difference.

Probably not indeed.

Thanks for trying it out.

JMarc

Reply via email to