On 06/26/2012 10:27 PM, Achim Flammenkamp wrote:
3) fiddle with the SVG until the renderer used
correctly interprets
what you want - maybe someone with a lot of SVG-fu can do that for
you.
3) I did four hours! :-( And tryed other SVG-coding but it did not work.
I had to mis design the Tekbir by more than 15% then some artifacts for some sizes
vanished.
Using a none buggy png-renderer when scaling doing, would solve this issue.
(This was my suggestion).
I took a look at the SVG code, and I see several things that could be
done to improve the rendering at arbitrary sizes:
* The "Allahu Akbar" strips are each supposed to contain 11 copies of
the phrase, but they actually contain 12 of them, with two of the copies
drawn on top of each other. This can cause one of the 11 phrases to
appear bolder than the others at some sizes (such as the 120 x 69 px
size used in gallery thumbnails). The way to fix that is simply to
remove the extra copies.
* The faint green/red line appearing between the phrases and the central
white part of the flag at some sizes occurs because the phrases and the
white area are different paths, and are thus rendered separately. It
would be better to merge them into a single path, and to make sure that
no path segments occur in places where a visible line is not supposed to
appear. (That is, if you set a stroke for the path, the stroked line
should appear only along the boundary of the red/green and white areas.)
* The emblem in the center is built by drawing one half of it and then
cloning and mirroring it. At some sizes, this can cause a faint white
line to appear where the two halves join together. It would be better
to draw the entire emblem as a single path.
All of these issues fall into the general category known as "coincident
paths". Specifically, whenever a vector renderer is told to draw two
lines that fall exactly on top of each other, it's very likely that
there will be rendering errors under some circumstances. Careful design
and implementation of the rendering code can minimize these issues, but
it cannot eliminate them entirely. The only way to reliably solve the
problem is to design your drawings so that they don't contain coincident
paths.
--
Ilmari Karonen