5 This file is part of groff, the GNU roff type-setting system.
7 Copyright (C) 2005-2018 Free Software Foundation, Inc.
8 written by Joachim Walsdorff <Joachim.Walsdorff@urz.uni-heidelberg.de>.
10 groff is free software; you can redistribute it and/or modify it under
11 the terms of the GNU General Public License as published by the Free
12 Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
15 groff is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
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 .\" ******************************************************************
36 .ds fonts_x fonts_x.roff\" name for diagnostic messages
41 .so \*[sopath]examples/common.roff
44 . ds fontpath @fontdir@
46 .tm \*[fonts_x]: listing fonts in \*[fontpath]/dev\*[.T]
55 "printf '%s' '.ds *f ' ; \
56 ls \\*[fontpath]/dev\*[.T] \
57 | tr '[:cntrl:]' '[ *]'"
58 . \" This dummy line is necessary; the preceding line eats it.
60 . while !"\\*[*args]"" \{\
63 . if "\\*[*$1]"all" \{\
64 . ds *args \\*[*f] \\*[*args]
76 . t*index "\\*[*f]" \\*[*$1]
80 . tm \\*[fonts_x]: \\n[.F]:\\n[.c]: Font \\*[*$1] not found.
84 . if !\\n[t*index] \{\
85 . tm \\*[fonts_x]: \\n[.F]:\\n[.c]: Font \\*[*$1] not found.
94 . if (\\n[**] == \\n[*]) \
101 . tm \\*[fonts_x]: listing font '\\*[*$1]'...
103 . TBL border=.1n bc=red cpd=0 csp=.1n bgc=
104 . CPTN groff font \\*[*$1] \
106 val=b ".pso @EGREP@ internalname \\*[fontpath]/dev\*[.T]/\\*[*$1]"
109 . TBL cols=18 border=.1n bc=red csp=.1n cpd=.2n fgc=red4 bgc=beige \
110 hal=c fsz='1.2 1.7' fst=\\*[*$1]
116 . while (\\n+[x#] < 16) \{\
124 . while (\\n+[y#] < 17) \{\
130 . while (\\n+[x#] < 16) \{\
132 . if c \N'\\n+[c#]' \
143 . while (\\n+[x#] < 16) \{\
156 .\" ====================================================================
158 .\" ====================================================================
164 .\" vim: set filetype=groff textwidth=72: