The stroke-dasharray attribute could be an easy solution here:

<?xml version="1.0" standalone="no"?>
<svg width="100%" height="100%" viewBox="0 0 600 800" version="1.1"
xmlns="http://www.w3.org/2000/svg";>
<rect x="0" y="0" width="150" height="450" stroke-width="2" stroke="black"
fill="none" stroke-dasharray="280 50 2000" />
<text x="130" y="160">D</text>
</svg>

Works in Firefox, Opera, Chromium, IE9, Batik, SVGSalamander and Inkscape.  
librsvg is doing strange things (like so often).

Thomas W.


--- In [email protected], "samydagan" <dagan@...> wrote:
>
> Hi Pranav,
> How about:
> 
> <?xml version="1.0" standalone="no"?>
> <svg width="100%" height="100%" viewBox="0 0 600 800" version="1.1"
> xmlns="http://www.w3.org/2000/svg";>
> <rect  x="0" y="0" width="150" height="450" stroke-width="2" stroke="black" 
> fill="none"/>
> <text x="130" y="160">D</text>
> </svg>
> 
> Welcome to the club. Cheers, Samy
> 
> --- In [email protected], "Pranav Lal" <pranav.lal@> wrote:
> >
> > Hi all,
> > 
> > I am trying to draw the plan of my house in SVG. I want to draw the plan
> > like it is drawn in autocad. So, if I start with a rectangle for the
> > boundary of the house, I want to show a door in the boundary. I can write
> > the letter "d" for door inside the rectangle but in Autocad, that bit of the
> > outline is erased. How do I do this in SVG?
> > 
> > My current diagram looks like this.
> > 
> > <?xml version="1.0" standalone="no"?>
> > <svg width="100%" height="100%" viewBox="0 0 600 800" version="1.1"
> > xmlns="http://www.w3.org/2000/svg";>
> >   <rect width="150" height="450"/>
> > <text x="155" y="160">D</text>
> > </svg>
> > 
> > Pranav
> >
>




------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to