1 .\" -*- mode: nroff -*-
6 This file is part of groff, the GNU roff type-setting system.
8 Copyright (C) 2005-2014 Free Software Foundation, Inc.
9 written by Joachim Walsdorff <Joachim.Walsdorff@urz.uni-heidelberg.de>.
11 groff is free software; you can redistribute it and/or modify it under
12 the terms of the GNU General Public License as published by the Free
13 Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 groff is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>.
27 .\" ******************************************************************
28 .\" ** groff glyphs vs. character codes: **
29 .\" ** .fontdump [font1 font2 ...] **
30 .\" ** Print glyphs of font1, font2, ..., versus **
31 .\" ** character code. **
32 .\" ** `all' as fontname prints all fonts in the **
33 .\" ** specified string `fontpath'. **
34 .\" ** without arg: glyphs and codes of active font. **
35 .\" ******************************************************************
40 .so \*[sopath]examples/common.roff
45 . ds fontpath @fontdir@
55 ls \\*[fontpath]/dev\*[.T] \
57 . \" This dummy line is necessary; the preceding line eats it.
59 . while !"\\*[*args]"" \{\
62 . if "\\*[*$1]"all" \{\
63 . ds *args \\*[*f] \\*[*args]
75 . t*index "\\*[*f]" \\*[*$1]
79 . tm \\n[.F]:\\n[.c]: Font \\*[*$1] not found.
83 . if !\\n[t*index] \{\
84 . tm \\n[.F]:\\n[.c]: Font \\*[*$1] not found.
93 . if (\\n[**] == \\n[*]) \
100 . tm listing font `\\*[*$1]'...
102 . TBL border=.1n bc=red cpd=0 csp=.1n bgc=
103 . CPTN groff font \\*[*$1] \
105 val=b ".pso grep -e internalname \\*[fontpath]/dev\*[.T]/\\*[*$1]"
108 . TBL cols=18 border=.1n bc=red csp=.1n cpd=.2n fgc=red4 bgc=beige \
109 hal=c fsz='1.2 1.7' fst=\\*[*$1]
115 . while (\\n+[x#] < 16) \{\
123 . while (\\n+[y#] < 17) \{\
129 . while (\\n+[x#] < 16) \{\
131 . if c \N'\\n+[c#]' \
142 . while (\\n+[x#] < 16) \{\
158 .\" 466MHz Celeron CPU, 384MB RAM
159 .\" WindowsXP/cygwin groff18.1: 107s
160 .\" WindowsXP/cygwin groff19.2: 390s
161 .\" Suse Linux 9.3 groff19.2: 66s