OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Weird callout issue



At 10:56 26.10.2004, Jacques Foucry wrote:

>My problem is with the new callout graphic number generated with the 
>Alexander's scripts.
>
>Inside the number.xml file, I saw that the output might by un a circle but 
>mine are square.

might be due some improper width, height, viewbox values? it's a bit 
cumbersome with svg

i've made some small corrections to all the attributes, so the circle 
border won't be cut off anymore

<?xml version="1.0"?>
<svg width="50" height="50" viewBox="0 0 16 16">
   <g transform="translate(0,0)" 
style="font-family:serif;font-size:12;font-weight:bold">
     <circle cx="8" cy="8" r="7" 
style="stroke:rgb(0,0,0);fill:black;stroke-width:1"/>
     <g style="stroke:none;fill:white">
       <text id="number" text-anchor="middle" x="8" y="11.5"></text>
     </g>
   </g>
</svg>

note that if you want the graphic to be scaled, just change the width and 
height attributes inside the svg root element and leave all other values 
the same
(so the sample above will produce an image with 50 pixels in width and height)

Alex  



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]