🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.andrew
Article #2131

Re: StringSize bug

#2131
From: Mark Sherman
Date: Wed, 28 Feb 1990 17:23
11 lines
1044 bytes
(It's not a bug, it's a feature.)

I think the implementation is correct. I don't have the manual in front
of me, but I think the values returned by
fontdesc_StringSize(self, graphic, string, XWidth, YWidth)
are supposed to be how much the current location moves in the XWidth
distance and and YWidth distance if that string were imaged. Because
most people use Latin alphabets that are horizontal, there is no
vertical movement for imaging a string, hence YWidth of 0. I think you
want the font height if you want to know how tall characters are.
		-Mark
Technical Details
Message-ID: <4Zv0Y_K00VsAEP9GdJ@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!iowasp!deimos!ux1.cso.uiuc.edu!brutus.cs.uiuc.edu!zaphod.mps.ohio-state.edu!mips!apple!bionet!agate!ucbvax!andrew.cmu.edu!mss+
References: <9002280345.AA04573@bullwinkle.cs.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!iowasp!deimos!ux1.cso.uiuc.edu!brutus.cs.uiuc.edu!zaphod.mps.ohio-state.edu!mips!apple!bionet!agate!ucbvax!andrew.cmu.edu!mss+
From: mss+@andrew.cmu.edu (Mark Sherman)
Newsgroups: comp.soft-sys.andrew
Subject: Re: StringSize bug
Message-ID: <4Zv0Y_K00VsAEP9GdJ@andrew.cmu.edu>
Date: 28 Feb 90 17:23:22 GMT
References: <9002280345.AA04573@bullwinkle.cs.uiuc.edu>
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 11