On Wed, Jan 26, 2005 at 10:19:03AM -0500, Ashwin Bharambe wrote:
This is just a random thought: is it possible for the icons to be differently stroked depending on the resolution?
Use different units for positions and stroke widths. E.g. always use what corresponds to exterior px for widths & highlights, and use percentages for positions. Given that e.g. path's can only be specified in user units, some gymnastics will be required; e.g.:
<g stroke="#000" stroke-width="2px"> <svg x="8pt" y="8pt" width="56pt" height="56pt" viewBox="0 0 56 56"> <path d="m 0 0 l 56 56" /> </svg> </g>
The above path has its stroke width specified in px, but its length is specified as fractions of an inch.
Unfortunately, rsvg-view seems to have buggy handling of its dpi setting, and inkscape currently has a fixed px/in setting, so this approach isn't useful with existing SVG icon renderers.
An alternative to pt/in/mm would be to use percentages as the other unit. Except that inkscape currently specifies a fixed width of its icons in pixels, so percentages would be equivalent to a fixed number of pixels regardless of the monitor resolution. We could change this of course.
pjrm.