4 Copyright (c) 2014 - 2015 Steffen (Daode) Nurpmeso <sdaoden@users.sf.net>.
6 Copyright (C) 2005, 2006 Free Software Foundation, Inc.
7 written by Joachim Walsdorff <Joachim.Walsdorff@urz.uni-heidelberg.de>.
9 This is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free
11 Software Foundation; either version 2, or (at your option) any later
14 This is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 You should have received a copy of the GNU General Public License
20 along with groff; see the file COPYING. If not, write to the Free
21 Software Foundation, 51 Franklin St - Fifth Floor, Boston, MA
26 .\" ******************************************************************
27 .\" ** groff glyphs vs. character codes: **
28 .\" ** .fontdump [font1 font2 ...] **
29 .\" ** Print glyphs of font1, font2, ..., versus **
30 .\" ** character code. **
31 .\" ** `all' as fontname prints all fonts in the **
32 .\" ** specified string `fontpath'. **
33 .\" ** without arg: glyphs and codes of active font. **
34 .\" ******************************************************************
39 . ds fontpath @FONTDIR@
49 ls \\*[fontpath]/dev\*[.T] \
51 . \" This dummy line is necessary; the preceding line eats it.
53 . while !"\\*[*args]"" \{\
56 . if "\\*[*$1]"all" \{\
57 . ds *args \\*[*f] \\*[*args]
69 . index "\\*[*f]" \\*[*$1]
73 . tm \\n[.F]:\\n[.c]: Font \\*[*$1] not found.
78 . tm \\n[.F]:\\n[.c]: Font \\*[*$1] not found.
87 . if (\\n[**] == \\n[*]) \
94 . tm listing font `\\*[*$1]'...
96 . TBL border=.1n bc=red cpd=0 csp=.1n bgc=
97 . CPTN @L_ROFF@ font \\*[*$1] \
99 val=b ".pso grep -e internalname \\*[fontpath]/dev\*[.T]/\\*[*$1]"
102 . TBL cols=18 border=.1n bc=red csp=.1n cpd=.2n fgc=red4 bgc=beige \
103 hal=c fsz='1.2 1.7' fst=\\*[*$1]
109 . while (\\n+[x#] < 16) \{\
117 . while (\\n+[y#] < 17) \{\
123 . while (\\n+[x#] < 16) \{\
125 . if c \N'\\n+[c#]' \
136 . while (\\n+[x#] < 16) \{\
151 .\" 466MHz Celeron CPU, 384MB RAM
152 .\" WindowsXP/cygwin groff18.1: 107s
153 .\" WindowsXP/cygwin groff19.2: 390s
154 .\" Suse Linux 9.3 groff19.2: 66s