How measure a character?

Giganews Newsgroups
Subject: How measure a character?
Posted by:  Fernando Nadal Martínez (f…@uma.es)
Date: Fri, 09 Jun 2006

Hi all,

I'm programming a kind of editor with mathematical notation. I want to
draw subscripts, superscripts, arrows over the letters, etc. So I need
to measure every character I want to draw. The procedures
Canvas.TextExtent and Canvas.TextHeight are invalid for me because the
calculated height is always the same for all the characters in the
active font: 'e' letter and 'b' letter has the same height based on
Canvas.Text[..].

How can I solve this problem?

Replies