Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi Christina,

Christina Roßmanith schrieb:
Hi,

what influence is anisotropic scaling supposed to have on stroke-width?

Given a line

<g transform="translate(60,-30) scale(8,2)">
<path d="M 20 40 H 40" stroke-width="4" stroke="black" />
</g>

Currently stroke-width in this example get scaled to 8*4=32 which seems
to be incorrect to me. If it gets scaled at all it should get the
scaling perpendicular to the line direction, i.e. 2*4=8.

Any thoughts?

Comment to the part "If it gets scaled at all": There exists the attribute
http://www.w3.org/TR/SVGTiny12/painting.html#NonScalingStroke
which is designed to prevent the width from scaling. So yes, the width has to be scaled.

It should look the same, as if you make a raster graphic from the unscaled drawing and then stretch the graphic with the given scale. At least that is the way it looks in the browsers Seamonkey and Opera.

Kind regards
Regina


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.