[comp.windows.news] stringbbox bugs

pett@socrates.ucsf.edu (Eric Pettersen%CGL) (10/23/88)

	I don't know if this has been mentioned before but...
stringbbox is hosed two different ways:

	1) It doesn't return what it is documented to return.  Both Sun
	   and SGI documentation say:
		(string) stringbbox => lower_left_x lower_left_y width height
	   when in fact it returns upper right x and y instead of width and
	   height.  This can be easily worked around by using "stringbbox
	   points2rect" instead of just stringbbox.

	2) It doesn't do the right thing when handed a null string:
		a) [Sun] : () stringbbox => 0 900 0 900
		b) [SGI] : () stringbbox => 0 773.6962 0 773.6962

				Happy Bug Hunting

				Eric Pettersen
				pett@cgl.ucsf.edu
				...!ucbvax!ucsfcgl!pett