chiark / gitweb /
Generate sample images in colour to match Web page
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 13 Jul 2024 14:52:22 +0000 (15:52 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Fri, 16 Aug 2024 23:11:11 +0000 (00:11 +0100)
Makefile
extended.ps
sample.ps

index ded89d637bc3db41eefdd96c5b8e92df71a2cfb9..71a7b8fe86409b38238657ade0dcca238fb738df 100644 (file)
--- 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 $@ $<
index c468321c748c504847ad42c75561659e844f7fe6..5396ba26a0b564cdec744070908b2758f01f487a 100644 (file)
@@ -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
index f197530a051f0989f24cb861817cdf5d2d24171f..7613c7a27a3c6deab4e0b15fe935fb9c6b50d054 100644 (file)
--- 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