Hi all,
This is just a random thought: is it possible for the icons to be differently stroked depending on the resolution? For example, I think many of the icons look much crisper (to me, at least) if I decrease the stroke width. However, if I go to a higher resolution display, they will perhaps look too "broken".
-Ashwin
On Wed, 26 Jan 2005 10:19:03 -0500, Ashwin Bharambe <ashwinb@...400...> wrote:
Hi all,
This is just a random thought: is it possible for the icons to be differently stroked depending on the resolution? For example, I think many of the icons look much crisper (to me, at least) if I decrease the stroke width. However, if I go to a higher resolution display, they will perhaps look too "broken".
This is exactly the problem with SVG icons Jimmac was referring to.
Alexandre
Ashwin Bharambe wrote:
Hi all,
This is just a random thought: is it possible for the icons to be differently stroked depending on the resolution?
I don't *think* there's a simple way in SVG itself to do this. I've look through the specs a bit trying to see.
However, it's possible there's some bit in CSS we could tweak. That should be looked into.
On Wed, 2005-01-26 at 10:30, Jon A. Cruz wrote:
However, it's possible there's some bit in CSS we could tweak. That should be looked into.
Perhaps different stylesheets for different resolutions; that would allow you to do things like features that are only shown (via the CSS visibility or display attributes) at higher resolutions.
-mental
MenTaLguY wrote:
On Wed, 2005-01-26 at 10:30, Jon A. Cruz wrote:
However, it's possible there's some bit in CSS we could tweak. That should be looked into.
Perhaps different stylesheets for different resolutions; that would allow you to do things like features that are only shown (via the CSS visibility or display attributes) at higher resolutions.
Yeah. Could be.
Also... getting non anti-aliased output might help too.
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.
participants (5)
-
Alexandre Prokoudine
-
Ashwin Bharambe
-
Jon A. Cruz
-
MenTaLguY
-
Peter Moulder