W3C home > Mailing lists > Public > www-svg@w3.org > May 2003

RE: baseline problem

From: Allen Razdow <arazdow@mathsoft.com>
Date: Sun, 4 May 2003 17:59:26 -0400
Message-ID: <8D1EA20CE6AB1043956A27D60E468F1CABE600@distrib.mathsoft.com>
To: "'Chris Lilley'" <chris@w3.org>, dario <dario@inecco.net>
Cc: www-svg@w3.org

This is an instance of an issue I raised some time ago, regarding the
difficulties of aligning text fragments as graphical entities.  I recall the
response being that scripting is required, to do queries for text sizes via
the DOM in order to do this.  It is still my belief that providing some
access to actual text metrics in SVG to allow such sizing is extremely
important.  With all the graphical flexibility SVG allows for formatting and
display of text, it's a strange limitation not to be able to easily arrange
other graphical elements around it.

-Allen

-----Original Message-----
From: Chris Lilley [mailto:chris@w3.org] 
Sent: Sunday, May 04, 2003 5:11 PM
To: dario
Cc: www-svg@w3.org
Subject: Re: baseline problem


On Sunday, May 4, 2003, 10:49:09 PM, dario wrote:

d> OK, what can i do to draw text under specified line

d> so, there is line at 100 pixels from the top, i'd like text drawn just
under
d> it. is it possible?

I understand the use case and no, not directly. You need to know what
the text size is and then offset that much by yourself.

<text x="100" y="62" font-size="12" text-anchor="middle">blah</text>

-- 
 Chris                            mailto:chris@w3.org
Received on Sunday, 4 May 2003 17:58:42 GMT

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