You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Henry Lu <zh...@umich.edu> on 2007/05/08 22:46:27 UTC

determine the length of string

How do we determine the length of string with no Frame window, no 
Applet? (we know the font and size)

-Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: determine the length of string

Posted by Andreas Neumann <ne...@karto.baug.ethz.ch>.
or you can use SVGTextContentElement.getComputedTextLength( )

Andreas

Paul L. Bogen wrote:
> Can you not just use getBBox() ?
>
> Or do you mean the number of charecters?
>
> plb 
>
> -----Original Message-----
> From: Henry Lu [mailto:zhlu@umich.edu] 
> Sent: Tuesday, May 08, 2007 3:46 PM
> To: batik-users@xmlgraphics.apache.org
> Subject: determine the length of string
>
> How do we determine the length of string with no Frame window, no
> Applet? (we know the font and size)
>
> -Henry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>   


-- 
--
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093  Zurich, Switzerland

Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: neumann@karto.baug.ethz.ch
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


RE: determine the length of string

Posted by "Paul L. Bogen" <pl...@kbsi.com>.
Can you not just use getBBox() ?

Or do you mean the number of charecters?

plb 

-----Original Message-----
From: Henry Lu [mailto:zhlu@umich.edu] 
Sent: Tuesday, May 08, 2007 3:46 PM
To: batik-users@xmlgraphics.apache.org
Subject: determine the length of string

How do we determine the length of string with no Frame window, no
Applet? (we know the font and size)

-Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org