simon-git: putty (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Fri Mar 18 12:58:23 GMT 2022
TL;DR:
a101444d New script to draw the icons as SVG.
Repository: https://git.tartarus.org/simon/putty.git
On the web: https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2022-03-18 12:58:23
commit a101444d40c76557e27e9920ffd0768cd17b9940
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=a101444d40c76557e27e9920ffd0768cd17b9940;hp=accf9adac2b4b2371ab54ac92bb9d688fa650f5b
Author: Simon Tatham <anakin at pobox.com>
Date: Fri Mar 18 07:11:11 2022 +0000
New script to draw the icons as SVG.
This gets us scalable icons that will go to extremely large sizes
without the problems that arise from scaling up the output of
mkicon.py, in which outlines become too thin because the script was
mostly concerned with trying to squeeze all the desired detail into
_tiny_ sizes.
The SVG icons are generated by mksvg.py, which is a conversion of the
existing mkicon.py. So the SVG files themselves are not committed in
this repo; 'make svg' in the icons subdir will generate them.
(I haven't decided yet whether this state of affairs should be
permanent. Perhaps _having_ generated the SVGs via a similar program
to the bitmap icons, we should regard the script as a discardable
booster stage and redesignate the SVGs themselves as the source format
for future modifications, so that they can be edited in Inkscape or
similar rather than by tinkering with Python. On the other hand,
perhaps keeping the script will make it easier to keep the icon family
consistent, e.g. if changing the style of one of the shared visual
components.)
My plan is that we should stick with the output of the previous
bitmap-generating script for all the _small_ icons, up to and
including 48 pixels, because it does a better job at low resolution.
(That was really what it was for in the first place: you can think of
it as an analogue of a scalable-font hinting system, to tune the
scaling for very low res so that all the important features are still
visible.)
I think probably I want to switch the 128-pixel icons used in the Mac
icon file over to being rendered from the SVG (though in this commit I
haven't gone that far, not least because I'll also need to prepare a
corresponding black and white version). I haven't done extensive
research yet to decide where I think the crossover point in between
is.
icons/Makefile | 8 +-
icons/mksvg.py | 938 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 945 insertions(+), 1 deletion(-)
More information about the tartarus-commits
mailing list