Re: baseline problem

On Saturday, May 3, 2003, 11:26:46 AM, dario wrote:


d> how am i supposed to draw text with the baseline above it.

d> i tried
d> <text x="100" y="50" font-size="12" text-anchor="middle"
d> alignment-baseline="top" >blah</text>

None of the four latin characters "b" "l" "a" or "h" has a top
baseline. You would need to use some devanagri characters for example.
Once you had done so, then the alignment baseline for text in the same
lien at a different point size would be set. Your example didn't
include any spans of text in different sizes either, so its not clear
what you were trying to align.

d> but Squiggle does not allow "top" value and adobe svg viewer ignores it
d> completely.

You don't know that it ignores it completely based on that test.

d>  i tried reading svg specs but it is to complicated and
d> confusing, i didn't understand a thing about baselines.

That makes it a bit difficult to test the implementations, i would
assume ;-)

d> i also tried other values, but text is allways drawn ABOVE
d> baseline. is there any way i can draw text UNDER the baseline

Aha. So what you are looking for is a vertical equivalent of
text-anchor.

Alignment baseline is not for that purpose at all.


-- 
 Chris                            mailto:chris@w3.org

Received on Sunday, 4 May 2003 14:28:10 UTC