This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]