Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!cmcl2!nrl-cmf!ames!pasteur!ucbvax!POLYA.STANFORD.EDU!lipa From: lipa@POLYA.STANFORD.EDU (William Lipa) Newsgroups: comp.sys.mac.programmer Subject: Finding the height of a character Message-ID: Date: 5 Aug 88 21:08:58 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 14 I am writing a plotting program and I would like to find the height of an arbitrary character in an arbitrary font so that I can center it vertically on a line. That means I need a different height for the letter "o" than the letter "O", even if they are in the same font and size. Is there any nice, compatible way to do this? Right now I just assume characters are a certain percentage of the fontAscent + fontDescent (about two-thirds seems about right). Of course, this is inaccurate and might lead to internationalization problems. Help much appreciated... Bill Lipa lipa%polya@forsythe.stanford.edu