PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
Okay, I thought I had this sussed out but it seems I'm a little off. I'm calculating the width of my proportional font text as: For each character in string: total width as decimal = total width + (character width * Font Size) / 1000 end each character. The character width are obtained from a Width Array and are correct. Now, I want to right align the character string at a given point (say 300). So say I have two strings (3.69 and 66.60). If I wanted to right align them at point 300 I'd reduce 300 by the calculated width (as above) and then position the text. I'm doing the following to position and align ... but the alignment isn't correct (see below). Any ideas? 1 0 0 1 286.656 449 Tm (3.96) Tj 1 0 0 1 279.984 441 Tm (66.60) Tj I realize that using Tm creates a larger file and probably isn't the correct way of doing this but I've got what I've got .. So each of the starting points are reduced from 300 by the width of the text but the alignment looks like: 3.96 66.60 Why is this happening? Thanks, Gordon To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
