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=12 border=.1n bc=red csp=.1n cpd=.2n fgc=red4 bgc=beige \
103 hal=c fsz='1.2 1.2' fst=\\*[*$1]
109 . \" following 4 `PN's instead of 4 while-loops as in
110 . \" font_x.roff; short and easy to write, but a little
117 ".TD fgc=blue fst=HB" \
120 "".if c \N'\En+[c#]' \
122 ".TD fgc=blue fst=HB" \
141 .\" 466MHz Celeron CPU, 384MB RAM
142 .\" WindowsXP/cygwin groff18.1: 115s
143 .\" WindowsXP/cygwin groff19.2: 450s
144 .\" Suse Linux 9.3 groff19.2: 76s