Sensitivity invisible with antialiased fonts

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
Sensitivity invisible with antialiased fonts

Submitted by dpeterc on Thu, 06/21/2007 - 19:49.

Cross posting the bug 1381 which I have entered

If I use XFT fonts, the insensitive buttons or text fields
are not drawn at all. This makes it rather unusable.
With normal fonts, the text is stippled with a 2x2 check,
which was fine in 1990, with black and white X servers.
Nowadays, it is nonsense, especially with AA fonts.
The easy way to do the "right thing" is to draw a lighter
etched in text instead of the bitmap overlap, which is
both ugly and not readable on thin fonts.
The etched in version can be drawn simply by drawing the
text twice with a sligthly lighter colors and small x+1, y+1 offset.
Usually, insensitive buttons or text fields must still be
readable, even if user can not interact with them.
One example of fixing this was xmLabelHack by bj John L. Cwikla,
and this approach is used in ddd. But xmLabelHack works just
on labels, proper solution whould also work on XmTextField.
Since XmNsensitive property is completely broken with AA
fonts, it would be now a good opportunity to correct it in
all cases.
I am using OpenSuse 10.2 with OM 2.3beta
I did not see any relevant changes in CVS with respect to the final OM 2.3

Tue, 07/17/2007 - 17:08#1

Tue, 07/17/2007 - 17:08#1

dpeterc

Sensitivity invisible with antialiased fonts

In the final om 2.3 release, this has not been fixed yet.
If my above proposal is too ambitions, then just make the
insensitive text in lighter (if dark text) or darker (if light text),
so that it will be visible.
Having no text with insensitive XFT labels is really poor feedback.

Du?an Peterc
http//www.arahne.si

Thu, 07/26/2007 - 11:06#2

Thu, 07/26/2007 - 11:06#2

mbalmer

it's really annoying

th e described behaviour is really annoying; to the point it makes XFT fonts unusable for serious Motif apps.

Fri, 07/27/2007 - 11:44#3

Fri, 07/27/2007 - 11:44#3

Yuriy Syrota

Sensitivity invisible with antialiased fonts

This is bug #1381, we are working on it, seems this will be fixed in 2-3 days abd will be available in version 2.3.1