[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

259.0. "ImageText Background Rect Question" by RAINBO::SLICK () Tue Feb 21 1989 09:55

I have a question about ImageText background rects.  I asked first in RDVAX::X
(575.*) but it seems more appropriate to ask here now.  The bounds of the
background rect painted by ImageText are specifed as y-fontAscent to 
y+fontDescent where the ascent and descent values are the 'natural' or 
'line spacing' values of the font, NOT the maximum of over all glyphs in the
font.  The font -adobe-courier-medium-r-normal--*-120-* has a spacing ascent
of 10 but a max ascent of 11, for example.

The question is which ascent value do DECwindows servers use?  They seem
to use the max ascent value.  Is this wrong?  Some DECwindows apps seem
to depend on this behavior, are they wrong too?  decw$mail uses the mentioned
courier font and highlights selections with ImageText white foreground, black
background.  The lines are spaced using the max ascent value and background
rect uses the same value resulting in solid black highlighting.  Assuming
the server is incorrect, then if it was correct there would be ugly white
space between the highlighted text lines in decw$mail.

Why do I care?  I'm working on a server that uses the spacing ascent, not the
max ascent and I get the ugly white space between the highlighted text lines.
I want to know who is correct and who is at fault.


T.RTitleUserPersonal
Name
DateLines
259.1GPX uses ascent plus decentSTAR::BMATTHEWSTue Feb 21 1989 16:235
I answered in the other conference. I am the developer of the GPX text
code for VAX(VMS and Ultrix). I use the font ascent and decent as per
the X11 protocol.
						Bill

259.2Maybe the rectangle fill is in error?STAR::BMATTHEWSTue Feb 21 1989 16:242
Perhaps your fill rectangle is not filling the last scan line? - Bill