Jean-Marc Lasgouttes wrote:
Abdelrazak Younes <[EMAIL PROTECTED]> writes:
I do not think it belongs to font,
With other wordprocessors you can highlight text with a different
background. Isn't that something that we want to support?

First, I am not sure at all that there is a proper stable package for
doing that in LaTeX (colors are horrible in LaTeX because they are
done through \specials in the dvi/pdf). Uwe probably knows.

That's too bad but this doesn't stop us to implement the support correctly for screen representation.

Second, I do not see anything common between your desire of painting
nicely and the support for this new feature. We already suffer from
the merging of two different concepts (GUI color and LaTeX-level
color). There is no need to add to this confusion.

'Font' is used for *Display*, if there is some confusion WRT LateX then this should be cured. This has nothing to do with our problem. The background color used for text painting is at the same level as the color of the pen or the font used, we should not make an artificial separation because there's some confusion WRT LateX.



but the Painter could have a
backgroundColor member that is updated by the painting code.
That is also possible but I am not sure it will work for selection.

Why? The row painter (or whatever takes its place) knows what is the
proper background color (with or without selection), it can pass this
information around.

No, the selection background is decided by the Inset themselves based on the Cursor selection state. The RowPainter will have to check for each painted character or word of it is selected or not. Right now RowPainter only cares about the Inset background color.

Abdel.

Reply via email to