Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2006 Jun : How measure a character?
| Subject: | How measure a character? |
| Posted by: | "Fernando Nadal Martínez" (f..@uma.es) |
| Date: | Fri, 9 Jun 2006 14:03:24 |
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?