Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!shelby!msi.umn.edu!umeecs!zip!bagchi From: bagchi@eecs.umich.edu (Ranjan Bagchi) Newsgroups: comp.windows.x Subject: naive query Message-ID: Date: 3 Mar 91 12:46:06 GMT Sender: news@zip.eecs.umich.edu Distribution: comp Organization: Recreational Creationists, Inc. Lines: 23 (Since I'm much too sleepy to find and wade through the source...) Does anyone know exactly the algorithm which the XDrawString functions use to draw one character after another? Specifically, how the horiz. position of each subsequent character is determined. I've written a small chunk of code which draws text in either a line-by-line or character-by-character fashion...the problem is that character-by-character just doesn't get the kerning right, and the text drawn this way is always slightly off from when the text would be drawn in one shot as a line. I've been screwing around with the info held in each XCharStruct, but I haven't been getting it right yet. -zzzzzzzzz -- -------------------------------------------------------------------------------- Ranjan Bagchi - the incredible sleeping hacker...... bagchi@[eecs | caen].math.lsa.umich.edu | Pleasure has become a weapon now! | --------------------------------------------------------------------------------