XForms: on HP, \n prints black rectangles

Tristan Savatier (tristan@mpegtv.com)
Wed, 26 Nov 1997 19:16:46 -0800

To subscribers of the xforms list from Tristan Savatier <tristan@mpegtv.com> :

I noticed the following small cosmetic bug under
HP-UX 9.05:

With version 0.87.5 (and earlier), any multiline
message (i.e. containing a \n like in "hello\nworld")
appears with a black rectangular square at the
end of each line.

You can see that on the XForms copyright message
(obtaines by ALT+middle button clicking on a form).

It is also visible in multiline onliners
i.e. fl_show_oneliner("hello\nworld", 100, 100);

It seems that the cause of the problem is that
xforms draws the \n character present
at the end of each line.

On HP for some reason (is that a bug ?)
some (or all) fonts have a black rectangle
for the \n glyph.

If that is the case, Xforms should just remove the
\n from the strings that it draws.

-t
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/