1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
|
#!/bin/sh
# 06-May-2009
# Updated by Stuart Winter <mozes@slackware.com>
# Run 'setfont' in a chroot. This makes setfont work
# correctly in the installer.
# 2010-04-28, add LatKaCyrHeb-14.psfu.gz <volkerdi>
if [ "$TMP" = "" ]; then
TMP=/var/log/setup/tmp
fi
load_font() {
if [ ! -z "$T_PX" ]; then
CHROOT="chroot $T_PX"
fi
$CHROOT setfont $*
if [ ! $? = 0 ]; then
if [ -r $T_PX/usr/share/kbd/consolefonts/$1 ]; then
$CHROOT setfont $T_PX/usr/share/kbd/consolefonts/$* 1> /dev/null 2> /dev/null
elif [ -r $T_PX/usr/lib/kbd/consolefonts/$1 ]; then
$CHROOT setfont $T_PX/usr/lib/kbd/consolefonts/$* 1> /dev/null 2> /dev/null
elif [ -r /var/adm/mount/live/usr/lib/kbd/consolefonts/$1 ]; then
$CHROOT setfont /var/adm/mount/live/usr/lib/kbd/consolefonts/$* 1> /dev/null 2> /dev/null
else # load default font
$CHROOT setfont
fi
fi
}
# Determine effective root path:
if [ -r $TMP/SeTT_PX ]; then
T_PX="`cat $TMP/SeTT_PX`"
elif [ ! "$1" = "" ]; then
T_PX=$1
else
T_PX=/
fi
if [ ! "$COLOR" = "off" -o -r $TMP/SeTcolor -o -r /tmp/SeTcolor ]; then # use color menus
if [ ! "$1" = "" ]; then
dialog --title "CONSOLE FONT CONFIGURATION" --defaultno --yesno "Would you like to try \
out some custom screen fonts?" 5 60
if [ $? = 1 ]; then
exit
fi
fi
REPLY=`mktemp -q $TMP/temp.XXXXXX`
FONT="161.cp.gz -16"
while [ 0 ]; do
dialog --default-item "$FONT" --title "SELECT A SCREEN FONT" --menu "Select one of the following \
custom fonts. If you decide you like it, you can make it your new default \
screen font. You'll be able to try as many of these as you like." 21 65 12 \
"161.cp.gz -16" "" \
"162.cp.gz -16" "" \
"163.cp.gz -16" "" \
"164.cp.gz -16" "" \
"165.cp.gz -16" "" \
"737.cp.gz -16" "" \
"880.cp.gz -16" "" \
"928.cp.gz -16" "" \
"972.cp.gz -16" "" \
"Agafari-12.psfu.gz" "" \
"Agafari-14.psfu.gz" "" \
"Agafari-16.psfu.gz" "" \
"Cyr_a8x14.psfu.gz" "" \
"Cyr_a8x16.psfu.gz" "" \
"Cyr_a8x8.psfu.gz" "" \
"Goha-12.psfu.gz" "" \
"Goha-14.psfu.gz" "" \
"Goha-16.psfu.gz" "" \
"GohaClassic-12.psfu.gz" "" \
"GohaClassic-14.psfu.gz" "" \
"GohaClassic-16.psfu.gz" "" \
"Lat2-Terminus16.psfu.gz" "" \
"LatArCyrHeb-08.psfu.gz" "" \
"LatArCyrHeb-14.psfu.gz" "" \
"LatArCyrHeb-16+.psfu.gz" "" \
"LatArCyrHeb-16.psfu.gz" "" \
"LatArCyrHeb-19.psfu.gz" "" \
"LatKaCyrHeb-14.psfu.gz" "" \
"Mik_8x16.gz" "" \
"UniCyrExt_8x16.psf.gz" "" \
"UniCyr_8x14.psf.gz" "" \
"UniCyr_8x16.psf.gz" "" \
"UniCyr_8x8.psf.gz" "" \
"alt-8x14.gz" "" \
"alt-8x16.gz" "" \
"alt-8x8.gz" "" \
"altc-8x16.gz" "" \
"aply16.psf.gz" "" \
"arm8.fnt.gz" "" \
"b.fnt.gz" "" \
"c.fnt.gz" "" \
"cp1250.psfu.gz" "" \
"cp850-8x14.psfu.gz" "" \
"cp850-8x16.psfu.gz" "" \
"cp850-8x8.psfu.gz" "" \
"cp857.08.gz" "" \
"cp857.14.gz" "" \
"cp857.16.gz" "" \
"cp865-8x14.psfu.gz" "" \
"cp865-8x16.psfu.gz" "" \
"cp865-8x8.psfu.gz" "" \
"cp866-8x14.psf.gz" "" \
"cp866-8x16.psf.gz" "" \
"cp866-8x8.psf.gz" "" \
"cybercafe.fnt.gz" "" \
"cyr-sun16.psfu.gz" "" \
"default8x16.psfu.gz" "" \
"default8x9.psfu.gz" "" \
"drdos8x14.psfu.gz" "" \
"drdos8x16.psfu.gz" "" \
"drdos8x6.psfu.gz" "" \
"drdos8x8.psfu.gz" "" \
"gr737a-8x8.psfu.gz" "" \
"gr737a-9x14.psfu.gz" "" \
"gr737a-9x16.psfu.gz" "" \
"gr737b-8x11.psfu.gz" "" \
"gr737b-9x16-medieval.psfu.gz" "" \
"gr737c-8x14.psfu.gz" "" \
"gr737c-8x16.psfu.gz" "" \
"gr737c-8x6.psfu.gz" "" \
"gr737c-8x7.psfu.gz" "" \
"gr737c-8x8.psfu.gz" "" \
"gr737d-8x16.psfu.gz" "" \
"gr928-8x16-thin.psfu.gz" "" \
"gr928-9x14.psfu.gz" "" \
"gr928-9x16.psfu.gz" "" \
"gr928a-8x14.psfu.gz" "" \
"gr928a-8x16.psfu.gz" "" \
"gr928b-8x14.psfu.gz" "" \
"gr928b-8x16.psfu.gz" "" \
"greek-polytonic.psfu.gz" "" \
"iso01-12x22.psfu.gz" "" \
"iso01.08.gz" "" \
"iso01.14.gz" "" \
"iso01.16.gz" "" \
"iso02-12x22.psfu.gz" "" \
"iso02.08.gz" "" \
"iso02.14.gz" "" \
"iso02.16.gz" "" \
"iso03.08.gz" "" \
"iso03.14.gz" "" \
"iso03.16.gz" "" \
"iso04.08.gz" "" \
"iso04.14.gz" "" \
"iso04.16.gz" "" \
"iso05.08.gz" "" \
"iso05.14.gz" "" \
"iso05.16.gz" "" \
"iso06.08.gz" "" \
"iso06.14.gz" "" \
"iso06.16.gz" "" \
"iso07.14.gz" "" \
"iso07.16.gz" "" \
"iso07u-16.psfu.gz" "" \
"iso08.08.gz" "" \
"iso08.14.gz" "" \
"iso08.16.gz" "" \
"iso09.08.gz" "" \
"iso09.14.gz" "" \
"iso09.16.gz" "" \
"iso10.08.gz" "" \
"iso10.14.gz" "" \
"iso10.16.gz" "" \
"koi8-14.psf.gz" "" \
"koi8c-8x16.gz" "" \
"koi8r-8x14.gz" "" \
"koi8r-8x16.gz" "" \
"koi8r-8x8.gz" "" \
"koi8r.8x8.psfu.gz" "" \
"koi8u_8x14.psfu.gz" "" \
"koi8u_8x16.psfu.gz" "" \
"koi8u_8x8.psfu.gz" "" \
"lat0-08.psfu.gz" "" \
"lat0-10.psfu.gz" "" \
"lat0-12.psfu.gz" "" \
"lat0-14.psfu.gz" "" \
"lat0-16.psfu.gz" "" \
"lat1-08.psfu.gz" "" \
"lat1-10.psfu.gz" "" \
"lat1-12.psfu.gz" "" \
"lat1-14.psfu.gz" "" \
"lat1-16.psfu.gz" "" \
"lat2-08.psfu.gz" "" \
"lat2-10.psfu.gz" "" \
"lat2-12.psfu.gz" "" \
"lat2-14.psfu.gz" "" \
"lat2-16.psfu.gz" "" \
"lat2a-16.psfu.gz" "" \
"lat4-08.psfu.gz" "" \
"lat4-10.psfu.gz" "" \
"lat4-12.psfu.gz" "" \
"lat4-14.psfu.gz" "" \
"lat4-16+.psfu.gz" "" \
"lat4-16.psfu.gz" "" \
"lat4-19.psfu.gz" "" \
"lat4a-08.psfu.gz" "" \
"lat4a-10.psfu.gz" "" \
"lat4a-12.psfu.gz" "" \
"lat4a-14.psfu.gz" "" \
"lat4a-16+.psfu.gz" "" \
"lat4a-16.psfu.gz" "" \
"lat4a-19.psfu.gz" "" \
"lat5-12.psfu.gz" "" \
"lat5-14.psfu.gz" "" \
"lat5-16.psfu.gz" "" \
"lat7-14.psfu.gz" "" \
"lat7a-14.psfu.gz" "" \
"lat7a-16.psf.gz" "" \
"lat9-08.psf.gz" "" \
"lat9-10.psf.gz" "" \
"lat9-12.psf.gz" "" \
"lat9-14.psf.gz" "" \
"lat9-16.psf.gz" "" \
"lat9u-08.psfu.gz" "" \
"lat9u-10.psfu.gz" "" \
"lat9u-12.psfu.gz" "" \
"lat9u-14.psfu.gz" "" \
"lat9u-16.psfu.gz" "" \
"lat9v-08.psfu.gz" "" \
"lat9v-10.psfu.gz" "" \
"lat9v-12.psfu.gz" "" \
"lat9v-14.psfu.gz" "" \
"lat9v-16.psfu.gz" "" \
"lat9w-08.psfu.gz" "" \
"lat9w-10.psfu.gz" "" \
"lat9w-12.psfu.gz" "" \
"lat9w-14.psfu.gz" "" \
"lat9w-16.psfu.gz" "" \
"m.fnt.gz" "" \
"ml.fnt.gz" "" \
"mod_d.fnt.gz" "" \
"mod_s.fnt.gz" "" \
"mr.fnt.gz" "" \
"mu.fnt.gz" "" \
"r.fnt.gz" "" \
"rl.fnt.gz" "" \
"ro.fnt.gz" "" \
"ruscii_8x16.psfu.gz" "" \
"ruscii_8x8.psfu.gz" "" \
"s.fnt.gz" "" \
"sc.fnt.gz" "" \
"scrawl_s.fnt.gz" "" \
"scrawl_w.fnt.gz" "" \
"sd.fnt.gz" "" \
"sun12x22.psfu.gz" "" \
"t.fnt.gz" "" \
"t850b.fnt.gz" "" \
"tcvn8x16.psf.gz" "" \
"viscii10-8x16.psfu.gz" "" \
2> $REPLY
if [ ! $? = 0 ]; then
load_font
exit
fi
FONT=`cat $REPLY`
rm -f $REPLY
load_font $FONT
dialog --title "SET AS DEFAULT FONT" --yesno "Well, what do you think? \
If you'd like to make this your default font, select YES. You can change \
the default font any time by typing 'setconsolefont' or by editing \
/etc/rc.d/rc.font. If you don't \
like this font, select NO, and you'll be returned to the font selection \
menu. If you decide you want to stick with the default font, hit ESC or \
CANCEL once you get to that menu." 11 60
if [ $? = 0 ]; then
cat << EOF > $T_PX/etc/rc.d/rc.font
#!/bin/sh
#
# This selects your default screen font from among the ones in
# /usr/share/kbd/consolefonts.
#
setfont -v $FONT
EOF
chmod 755 $T_PX/etc/rc.d/rc.font
exit
else
load_font
fi
done
else # no color!
echo
echo -n "Would you like to try out some custom screen fonts ([y]es, [n]o)? "
read YESNO;
if [ "$YESNO" = "n" ]; then
exit
fi
while [ 0 ]; do
cat << EOF
SELECT A SCREEN FONT. Your choices are:
161.cp.gz 162.cp.gz 163.cp.gz 164.cp.gz 165.cp.gz 737.cp.gz 880.cp.gz 928.cp.gz
972.cp.gz Agafari-12.psfu.gz Agafari-14.psfu.gz Agafari-16.psfu.gz
Cyr_a8x14.psfu.gz Cyr_a8x16.psfu.gz Cyr_a8x8.psfu.gz Goha-12.psfu.gz
Goha-14.psfu.gz Goha-16.psfu.gz GohaClassic-12.psfu.gz GohaClassic-14.psfu.gz
GohaClassic-16.psfu.gz Lat2-Terminus16.psfu.gz LatArCyrHeb-08.psfu.gz
LatArCyrHeb-14.psfu.gz LatArCyrHeb-16+.psfu.gz LatArCyrHeb-16.psfu.gz
LatArCyrHeb-19.psfu.gz LatKaCyrHeb-14.psfu.gz
Mik_8x16.gz UniCyrExt_8x16.psf.gz UniCyr_8x14.psf.gz
UniCyr_8x16.psf.gz UniCyr_8x8.psf.gz alt-8x14.gz alt-8x16.gz alt-8x8.gz
altc-8x16.gz aply16.psf.gz arm8.fnt.gz b.fnt.gz c.fnt.gz cp1250.psfu.gz
cp850-8x14.psfu.gz cp850-8x16.psfu.gz cp850-8x8.psfu.gz cp857.08.gz cp857.14.gz
cp857.16.gz cp865-8x14.psfu.gz cp865-8x16.psfu.gz cp865-8x8.psfu.gz
cp866-8x14.psf.gz cp866-8x16.psf.gz cp866-8x8.psf.gz cybercafe.fnt.gz
cyr-sun16.psfu.gz default8x16.psfu.gz default8x9.psfu.gz drdos8x14.psfu.gz
drdos8x16.psfu.gz drdos8x6.psfu.gz drdos8x8.psfu.gz gr737a-8x8.psfu.gz
gr737a-9x14.psfu.gz gr737a-9x16.psfu.gz gr737b-8x11.psfu.gz
gr737b-9x16-medieval.psfu.gz gr737c-8x14.psfu.gz gr737c-8x16.psfu.gz
gr737c-8x6.psfu.gz gr737c-8x7.psfu.gz gr737c-8x8.psfu.gz gr737d-8x16.psfu.gz
gr928-8x16-thin.psfu.gz gr928-9x14.psfu.gz gr928-9x16.psfu.gz
gr928a-8x14.psfu.gz gr928a-8x16.psfu.gz gr928b-8x14.psfu.gz gr928b-8x16.psfu.gz
greek-polytonic.psfu.gz iso01-12x22.psfu.gz iso01.08.gz iso01.14.gz iso01.16.gz
iso02-12x22.psfu.gz iso02.08.gz iso02.14.gz iso02.16.gz iso03.08.gz iso03.14.gz
iso03.16.gz iso04.08.gz iso04.14.gz iso04.16.gz iso05.08.gz iso05.14.gz
iso05.16.gz iso06.08.gz iso06.14.gz iso06.16.gz iso07.14.gz iso07.16.gz
iso07u-16.psfu.gz iso08.08.gz iso08.14.gz iso08.16.gz iso09.08.gz iso09.14.gz
iso09.16.gz iso10.08.gz iso10.14.gz iso10.16.gz koi8-14.psf.gz koi8c-8x16.gz
koi8r-8x14.gz koi8r-8x16.gz koi8r-8x8.gz koi8r.8x8.psfu.gz koi8u_8x14.psfu.gz
koi8u_8x16.psfu.gz koi8u_8x8.psfu.gz lat0-08.psfu.gz lat0-10.psfu.gz
lat0-12.psfu.gz lat0-14.psfu.gz lat0-16.psfu.gz lat1-08.psfu.gz lat1-10.psfu.gz
lat1-12.psfu.gz lat1-14.psfu.gz lat1-16.psfu.gz lat2-08.psfu.gz lat2-10.psfu.gz
lat2-12.psfu.gz lat2-14.psfu.gz lat2-16.psfu.gz lat2a-16.psfu.gz lat4-08.psfu.gz
lat4-10.psfu.gz lat4-12.psfu.gz lat4-14.psfu.gz lat4-16+.psfu.gz lat4-16.psfu.gz
lat4-19.psfu.gz lat4a-08.psfu.gz lat4a-10.psfu.gz lat4a-12.psfu.gz
lat4a-14.psfu.gz lat4a-16+.psfu.gz lat4a-16.psfu.gz lat4a-19.psfu.gz
lat5-12.psfu.gz lat5-14.psfu.gz lat5-16.psfu.gz lat7-14.psfu.gz lat7a-14.psfu.gz
lat7a-16.psf.gz lat9-08.psf.gz lat9-10.psf.gz lat9-12.psf.gz lat9-14.psf.gz
lat9-16.psf.gz lat9u-08.psfu.gz lat9u-10.psfu.gz lat9u-12.psfu.gz
lat9u-14.psfu.gz lat9u-16.psfu.gz lat9v-08.psfu.gz lat9v-10.psfu.gz
lat9v-12.psfu.gz lat9v-14.psfu.gz lat9v-16.psfu.gz lat9w-08.psfu.gz
lat9w-10.psfu.gz lat9w-12.psfu.gz lat9w-14.psfu.gz lat9w-16.psfu.gz m.fnt.gz
ml.fnt.gz mod_d.fnt.gz mod_s.fnt.gz mr.fnt.gz mu.fnt.gz r.fnt.gz rl.fnt.gz
ro.fnt.gz ruscii_8x16.psfu.gz ruscii_8x8.psfu.gz s.fnt.gz sc.fnt.gz
scrawl_s.fnt.gz scrawl_w.fnt.gz sd.fnt.gz sun12x22.psfu.gz t.fnt.gz t850b.fnt.gz
tcvn8x16.psf.gz viscii10-8x16.psfu.gz
EOF
echo -n "Which font would you like (or ENTER to quit)? "
read FONT;
if [ "$FONT" = "" ]; then
load_font
echo
exit
fi
if [ ! -r $T_PX/usr/share/kbd/consolefonts/$FONT -a ! -r \
/var/adm/mount/usr/share/kbd/consolefonts/$FONT ]; then
cat << EOF
Sorry, I couldn't find that font. Try again.
EOF
fi
load_font $FONT
cat << EOF
SET AS DEFAULT FONT
Well, what do you think? If you'd like to make this your default font, select
YES. You can change the default font any time by typing 'setconsolefont' or by
editing /etc/rc.d/rc.font. If you don't like this font, select NO, and you'll
be able to select a different one. If you decide you want to stick with the
default font, hit RETURN once you return to the font selection menu.
EOF
echo -n "Would you like to have this font loaded by default ([y]es, [n]o)? "
read DEF
if [ "$DEF" = "YES" -o "$DEF" = "y" ]; then
cat << EOF > $T_PX/etc/rc.d/rc.font
#!/bin/sh
#
# This selects your default screen font from among the ones in
# /usr/share/kbd/consolefonts.
#
setfont -v $FONT
EOF
chmod 755 $T_PX/etc/rc.d/rc.font
echo
exit
else
load_font
fi
echo
done
fi
|