From: Ben Harris Date: Wed, 9 Aug 2017 21:23:48 +0000 (+0100) Subject: Clip character names to boxes in glyph complement. X-Git-Tag: bedstead-002.000~72 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=7864d4d1c8fb24683c6bb8191d8dd6a17c4e7354;p=bedstead.git Clip character names to boxes in glyph complement. Ideally, I'd do something more elegant with over-long glyph names, but at least keeping them in the boxes doesn't look terrible. --- diff --git a/bedstead.c b/bedstead.c index aecc904..59fffe6 100644 --- a/bedstead.c +++ b/bedstead.c @@ -2328,13 +2328,13 @@ glyph_complement() /* unicode glyphname exemplify -- */ printf("/exemplify {\n"); printf(" xfont setfont dup 14 14 moveto glyphshow\n"); + printf(" 0 0 moveto 0 40 lineto 40 40 lineto 40 0 lineto closepath\n"); + printf(" 1 setlinewidth gsave stroke grestore clip\n"); printf(" 0.1 setlinewidth\n"); printf(" 14 10 moveto 14 30 lineto 26 30 lineto 26 10 lineto\n"); printf(" closepath stroke\n"); printf(" 20 36 moveto str cvs label\n"); printf(" 20 2 moveto label\n"); - printf(" 0 0 moveto 0 40 lineto 40 40 lineto 40 0 lineto closepath\n"); - printf(" 1 setlinewidth stroke\n"); printf("} def\n"); printf("/colnum {\n"); printf(" nfont setfont 20 42 moveto centre\n");