W3C home > Mailing lists > Public > www-svg@w3.org > April 2005

Text metrics

From: Bernd Fuhrmann <silverbanana@gmx.de>
Date: Sat, 02 Apr 2005 13:39:27 +0200
Message-ID: <424E846F.7090208@gmx.de>
To: www-svg@w3.org

Hi!

I'm trying to render a directory tree, which consists of an icon (left) 
with some text (right), like this:

ICON Direcoryname
  [-] ICON Directoryname
       |   ICON Directoryname
  [+] ICON Directoryname

Now I have the following problem:
How can I place the directory name on the right height? Each directory 
name is a text-element itself, but I couldn't find any way to retrieve 
the maximum height of the used font and the relative position of the 
baseline in it. Is there a good way to retrieve that information?

Thanks in advance
Bernd Fuhrmann
Received on Saturday, 2 April 2005 11:39:40 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:29 GMT