From: Ben Harris Date: Sat, 13 Jul 2024 14:52:22 +0000 (+0100) Subject: Generate sample images in colour to match Web page X-Git-Tag: bedstead-002.007~16 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=9e018799cea570f55cfdc6ffdcc4d405342f3003;p=bedstead.git Generate sample images in colour to match Web page --- diff --git a/Makefile b/Makefile index ded89d6..71a7b8f 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ bedstead-chiseltip.sfd: strokefont.py bedstead-oc.sfd $< $*.otf %.png: %.ps $(OTFFILES) Fontmap - gs -P -q -dSAFER -sDEVICE=pnggray -dTextAlphaBits=4 -o $@ $< + gs -P -q -dSAFER -sDEVICE=png16m -dTextAlphaBits=4 -o $@ $< bedstead-%-df.png: df.ps bedstead.otf Fontmap gs -P -q -dSAFER -dsize=$* -sDEVICE=png16m -o $@ $< diff --git a/extended.ps b/extended.ps index c468321..5396ba2 100644 --- a/extended.ps +++ b/extended.ps @@ -1,5 +1,7 @@ /bpx { 5 mul } bind def << /HWResolution [ 72 72 ] /PageSize [ 215 bpx 30 bpx ] >> setpagedevice +3 255 div 17 255 div 9 255 div setrgbcolor 0 0 215 bpx 30 bpx rectfill +51 255 div 255 255 div 136 255 div setrgbcolor /Bedstead findfont 10 bpx scalefont setfont 0 22 bpx moveto (Bedstead) show /Bedstead-UltraCondensed findfont 80 scalefont setfont diff --git a/sample.ps b/sample.ps index f197530..7613c7a 100644 --- a/sample.ps +++ b/sample.ps @@ -1,5 +1,7 @@ /bpx { 5 mul } bind def << /HWResolution [ 72 72 ] /PageSize [ 193 bpx 101 bpx ] >> setpagedevice +3 255 div 17 255 div 9 255 div setrgbcolor 0 0 193 bpx 101 bpx rectfill +51 255 div 255 255 div 136 255 div setrgbcolor /Bedstead findfont 10 bpx scalefont setfont /row { %def 0 0 moveto