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 .\" ** roff glyphs vs. character codes:
27 .\" ** .fontdump [font1 font2 ...]
28 .\" ** Print glyphs of font1, font2, ..., versus
29 .\" ** character code.
30 .\" ** `all' as fontname prints all fonts in the
31 .\" ** specified string `fontpath'.
32 .\" ** without arg: glyphs and codes of active font.
37 . ds fontpath @FONTDIR@
47 ls \\*[fontpath]/dev\*[.T] \
49 . \" This dummy line is necessary; the preceding line eats it.
51 . while !"\\*[*args]"" \{\
54 . if "\\*[*$1]"all" \{\
55 . ds *args \\*[*f] \\*[*args]
67 . t*index "\\*[*f]" \\*[*$1]
71 . tm \\n[.F]:\\n[.c]: Font \\*[*$1] not found.
75 . if !\\n[t*index] \{\
76 . tm \\n[.F]:\\n[.c]: Font \\*[*$1] not found.
85 . if (\\n[**] == \\n[*]) \
92 . tm listing font `\\*[*$1]'...
94 . TBL border=.1n bc=red cpd=0 csp=.1n bgc=
95 . CPTN @L_ROFF@ font \\*[*$1] \
97 val=b ".pso grep internalname \\*[fontpath]/dev\*[.T]/\\*[*$1]"
100 . TBL cols=12 border=.1n bc=red csp=.1n cpd=.2n fgc=red4 bgc=beige \
101 hal=c fsz='1.2 1.2' fst=\\*[*$1]
107 . \" following 4 `PN's instead of 4 while-loops as in
108 . \" font_x.roff; short and easy to write, but a little
115 ".TD fgc=blue fst=HB" \
118 "".if c \N'\En+[c#]' \
120 ".TD fgc=blue fst=HB" \
139 .\" 466MHz Celeron CPU, 384MB RAM
140 .\" WindowsXP/cygwin groff18.1: 115s
141 .\" WindowsXP/cygwin groff19.2: 450s
142 .\" Suse Linux 9.3 groff19.2: 76s