From: Ben Harris Date: Sat, 13 Jul 2024 15:54:09 +0000 (+0100) Subject: Add an icon to the Web page X-Git-Tag: bedstead-002.007~15 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=2a4fec6c17b4accbed939204a921e7f2a1460384;p=bedstead-debian.git Add an icon to the Web page I generate various sizes because the 16-pixel version looks better than the scaled-down larger versions. --- diff --git a/Makefile b/Makefile index 71a7b8f..6ba581b 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ DISTFILES = bedstead.c Makefile CONTRIBUTING COPYING NEWS df.ps rom.ps \ all: $(DISTFILES) .PHONY: all-web -all-web: all sample.png extended.png +all-web: all sample.png extended.png icon.png .PHONY: experimental experimental: bedstead-chiseltip.otf bedstead-plotter-thin.otf \ @@ -85,6 +85,9 @@ bedstead-chiseltip.sfd: strokefont.py bedstead-oc.sfd %.png: %.ps $(OTFFILES) Fontmap gs -P -q -dSAFER -sDEVICE=png16m -dTextAlphaBits=4 -o $@ $< +icon-%.png: icon.ps bedstead-extended.otf Fontmap + gs -P -q -dSAFER -dsize=$* -sDEVICE=png16m -dTextAlphaBits=4 -o $@ $< + bedstead-%-df.png: df.ps bedstead.otf Fontmap gs -P -q -dSAFER -dsize=$* -sDEVICE=png16m -o $@ $< diff --git a/icon.ps b/icon.ps new file mode 100644 index 0000000..69f53df --- /dev/null +++ b/icon.ps @@ -0,0 +1,11 @@ +%! +/bpy { size 8 div mul } bind def +/bpx { bpy 1.25 mul } bind def +<< /HWResolution [ 72 72 ] /PageSize [ size size ] >> setpagedevice +3 255 div 17 255 div 9 255 div setrgbcolor 0 0 size size rectfill +51 255 div 255 255 div 136 255 div setrgbcolor +/Bedstead-Extended findfont 10 bpy scalefont setfont +size 5 bpx sub 2 div 1 bpx sub +size 7 bpy sub 2 div +moveto (B) show +showpage diff --git a/index.xhtml b/index.xhtml index e5b4bb9..e5496b7 100644 --- a/index.xhtml +++ b/index.xhtml @@ -7,6 +7,9 @@ content="application/xhtml+xml;charset=UTF-8" /> Bedstead – MODE 7 for the 21st century + + +

Bedstead