Debian Codegraph @

README

raw
1 Contents:
2
3 1. About.
4 1.1. Build requitements.
5 1.2. Quick installation.
6 1.3. Legend.
7 1.4. Variants.
8 1.5. Notes.
9 1.6. Alternative tools.
10
11 2. Linux console.
12 2.1. Installation.
13 2.2. Usage.
14 2.3. Quick reference.
15 2.4. Legend.
16 2.5. Notes.
17
18 3. X11 Window System.
19 3.1. Installation.
20 3.2. Notes.
21
22 4. Open Type Bitmap.
23 4.1. Installation.
24 4.2. Notes.
25
26 5. Microsoft Windows.
27 5.1. Installation package.
28 5.2. Font file only.
29 5.3. Notes.
30
31 6. Frequently Asked Questions.
32
33 7. Legal information.
34 7.1. Licenses.
35 7.2. Copyright.
36
37 --
38
39 1. About.
40
41 This archive contains source code for generating and installing Terminus
42 Font for Linux console, X11 Window System, Microsoft Windows and Open Type
43 Bitmap capable systems.
44
45 - version 4.49.1
46 - sizes 6x12, 8x14, 8x16, 10x18, 10x20, 11x22, 12x24, 14x28, 16x32
47 - weights normal, bold, CRT VGA bold
48 - characters 1356
49 - format Bitmap Distribution Format (BDF) version 2.1
50
51 The character set covers about 120 language sets and supports ISO8859-1/2/5/
52 7/9/13/15/16, Paratype-PT154/PT254, KOI8-R/U/E/F, Esperanto and many IBM,
53 Windows and Macintosh code pages, as well as the IBM VGA, vt100 and xterm
54 pseudographic characters.
55
56
57 1.1. Build requirements.
58
59 - GNU make
60 - Python 3.5.0+ (or node.js 6.9.0+ as alternative)
61 - for X11 only: bdftopcf
62 - for Windows only: GCC for Win32/i686
63 - for the Windows installer only: NSIS and patch(1).
64
65
66 1.2. Quick installation.
67
68 The commands:
69
70 $ ./configure [--prefix=PREFIX]
71 $ make -j8
72 # make install fontdir
73
74 compile and install the Linux console and X11 Window System fonts.
75 The default PREFIX is /usr/local.
76
77
78 1.3. Legend.
79
80 The file names are structured as follows:
81
82 ter-u<SIZE><STYLE>.bdf
83
84 <SIZE> is the font height. <STYLE> is n for normal (all sizes), b for bold
85 (all sizes except 6x12), and v for CRT VGA bold (8x14 and 8x16 only, uses
86 the eight character matrix column).
87
88
89 1.4. Variants.
90
91 Some characters are implemented in two variants. To use the alternate
92 variant, execute:
93
94 $ patch -p1 -i alt/<NAME>.diff
95
96 before making the font. See the font WEB page for examples. If you want to
97 combine hi2 with dv1 and/or ka2, apply hi2 and then hi2-dv1 and/or hi2-ka2.
98 The default variant for unicode range 2800-28FF is oriented towards
99 pseudographics.
100
101
102 1.5. Notes.
103
104 The commands marked with $ can be executed by a regular user.
105 The configure commands are optional.
106 "make -j8" runs 8 jobs in parallel.
107
108 Sizes 6x12, 11x22, 14x28-bold and 16x32-normal are worse than the others.
109 Avoid them.
110
111 210E and 210F are not italic.
112
113 226A, 226B and the double struck letters are not very good.
114
115 2135 may be wrong.
116
117 The hebrew letters and sheqel are uppercase height, which is an attempt to
118 compensate for the missing width.
119
120
121 1.6. Alternative tools.
122
123 If your Python 3 executable is named python instead if python3:
124
125 $ ./configure INT=python
126
127 To use node.js instead of python:
128
129 $ ./configure INT=node EXT=js
130
131 --
132
133 2. Linux console.
134
135 - weights normal, bold, CRT VGA-bold
136 - code pages ISO8859-1/ISO8859-15/Windows-1252, ISO8859-2/Windows-1250,
137 Windows-1251/ISO8859-5, ISO8859-9/Windows-1254, ISO8859-16,
138 ISO8859-7/Windows-1253, ISO8859-13/Windows-1257, IBM-437,
139 Bulgarian-MIK, KOI8-R, KOI8-U, Paratype-PT154, combined
140 - format PC Screen Font (PSF) with unicode data
141
142
143 2.1. Installation.
144
145 $ ./configure [--prefix=PREFIX | --psfdir=DIRECTORY]
146 $ make -j8 psf
147 # make install-psf
148
149 The files are compressed with gzip and installed in DIRECTORY. The default
150 DIRECTORY is PREFIX/share/consolefonts. For kbd, you may need to change it
151 to PREFIX/lib/kbd/consolefonts or PREFIX/share/kbd/consolefonts, depending
152 on the kbd version.
153
154 The CRT VGA bold weight fonts, suitable for real CRT text modes only, are
155 not installed by default. To install them, execute:
156
157 $ make -j8 psf-vgaw
158 # make install-psf-vgaw
159
160
161 2.2. Usage.
162
163 To load a cont in consoletools:
164
165 $ consolechars [-m MAPPING] -f ter-<X><SIZE><STYLE>
166
167 To load a font in kbd:
168
169 $ setfont [-m MAPPING] ter-<X><SIZE><STYLE>
170
171 where <X> is a character identifying the code page as listed in p.2.4.
172
173
174 2.3. Quick reference.
175
176 The commands:
177
178 $ ./configure [--prefix=PREFIX | --psfdir=DIRECTORY | --psfref=FILENAME]
179 # make install-psf-ref
180
181 install the text from p.2.4 as FILENAME (the default is README.terminus)
182 in DIRECTORY.
183
184
185 2.4. Legend.
186
187 names mappings covered codepage(s)
188
189 ter-1* iso01, iso15, cp1252 ISO8859-1, ISO8859-15, Windows-1252
190 ter-2* iso02, cp1250 ISO8859-2, Windows-1250
191 ter-7* iso07, cp1253 ISO8859-7, Windows-1253
192 ter-9* iso09, cp1254 ISO8859-9, Windows-1254
193 ter-c* cp1251, iso05 Windows-1251, ISO8859-5
194 ter-d* iso13, cp1257 ISO8859-13, Windows-1257
195 ter-g* iso16 ISO8859-16
196 ter-h* cp1255, iso08 Windows-1258, ISO8859-8
197 ter-i* cp437 IBM-437
198 ter-k* koi8r KOI8-R
199 ter-m* mik Bulgarian-MIK
200 ter-p* pt154 Paratype-PT154
201 ter-u* koi8u KOI8-U
202
203 ter-v* all mappings / code pages listed above and many others, about 110
204 language sets, 8 or 16 foreground colors depending on the kernel and
205 console driver versions
206
207 names weight
208
209 ter-*n normal
210 ter-*b bold
211 ter-*v CRT VGA bold
212
213
214 2.5. Notes.
215
216 The combined code page is based on IBM-437 (character 0xFF is ogonek).
217 The ISO8859-16 font also includes all letters and accents from Windows-1250.
218
219 --
220
221 3. X11 Window System.
222
223 - weights normal, bold
224 - code pages ISO8859-1/Windows-1252, ISO8859-2, ISO8859-5, ISO8859-7,
225 ISO8859-9/Windows-1254, ISO8859-13, ISO8859-15, ISO8859-16,
226 Windows-1251, IBM-437, KOI8-R, KOI8-U, Paratype-PT154 and
227 ISO10646-1 (unicode)
228 - format Portable Compiled Font (PCF)
229
230
231 3.1. Installation.
232
233 $ ./configure [--prefix=PREFIX | --x11dir=DIRECTORY]
234 $ make -j8 pcf
235 # make install-pcf
236
237 The files are compressed with gzip and installed in DIRECTORY. The default
238 DIRECTORY is PREFIX/share/fonts/terminus. Requires bdftopcf.
239
240 A copy of the normal 6x12 font is installed as "bold", because some X11
241 libraries and applications substitute the missing bold fonts by shifting the
242 normal fonts, and others do not recognize the bold weight at all if the
243 lowest font size lacks it.
244
245 To update the font cache in DIRECTORY after (un)installation, run:
246
247 # make fontdir
248
249 The configuration file which lists the font directories must contain
250 DIRECTORY. The X11 server may need to be restarted so the font list can be
251 updated.
252
253 By default, only the unicode (ISO10646-1) font is installed. To install the
254 other code pages:
255
256 $ make -j8 pcf-8bit
257 # make install-pcf-8bit
258
259
260 3.2. Notes.
261
262 The ISO8859-1 and ISO8859-9 fonts contain the Windows Western characters and
263 can be used as Windows-1252 and Windows-1254 respectively.
264
265 --
266
267 4. Open Type Bitmap.
268
269 - weights normal, bold
270 - code pages ISO10646-1 (unicode)
271 - format Linux/UNIX bitmap-only TrueType
272
273
274 4.1. Installation.
275
276 $ ./configure [--prefix=PREFIX | --otbdir=DIRECTORY]
277 $ make otb
278 # make install-otb
279
280 The files are installed in DIRECTORY.
281 The default DIRECTORY is PREFIX/share/fonts/terminus.
282
283
284 4.2. Notes
285
286 An OTB file is generated for each BDF file, instead of combining sizes by
287 weight, for the following reasons:
288
289 - KDE compatibility. With combined files, only the first size is available.
290
291 - Correct global font metrics. For example, the base line and character
292 width for 8x14 and 8x16 (relative to height) may never be identical.
293
294 otb1cli is NOT a full-featured BDF to sfnt convertor. It expands the bitmaps
295 first, uses the expanded widths, does not support overlapping characters,
296 and targets Linux/UNIX only.
297
298 --
299
300 5. Microsoft Windows.
301
302 - weights normal, bold
303 - code pages Windows-1252, 1250, 1253, 1254, 1251 and 1257
304 - format Font File Format version 2.0, compiled into FON
305
306
307 5.1. Installation package.
308
309 Make sure that no variant patches are applied to the font (p.1.4).
310
311 > cd win32
312 > build
313
314 Be patient, the process may take several minutes.
315 After that, open terminus.nsi and compile it.
316
317
318 5.2. Font file only.
319
320 > copy *.bdf win32
321 > cd win32
322 > make -j8
323
324 You can install terminus.fon via the regular means.
325
326
327 5.3. Notes.
328
329 The Windows code pages contain a total of 384 characters. All other
330 characters (math, pseudographics etc.) are not currently available.
331
332 --
333
334 6. Frequently Asked Questions.
335
336 Q. Italic version?
337
338 A. No. The quality is significantly lower, and preserving the font width
339 requires overlapping characters, which are not handled very well by X11/Xft.
340 You can try mkitalic from FreeBSD or bdfslant from Debian.
341
342 Q. Scalable version?
343
344 A. Probably not. The font uses a lot of straight horizontal and vertical
345 lines, which is good for a bitmap, but not so much for a vector font. A
346 bitmap font packaged as TTF seems possible.
347
348 Q. How about some new characters?
349
350 A. Contact me and be ready to help.
351
352 Q. The bold 6x12 font...
353
354 A. ...does not exist, there is no space for a bold font in a 6x12 matrix.
355 However, the "normal" font is somewhere between.
356
357 Q. The font works in X11/Motif, but not in GNOME/KDE/Xfce.
358
359 A. Try adding 75-yes-terminus.conf to the Fontconfig configuration files.
360 For some Fontconfig versions, you may need to replace the text "Terminus"
361 in 75-yes-terminus.conf with "xos4 Terminus", though that is unlikely.
362 See also mkfontscale(1), mkfontdir(1), fc-cache(1), xorg.conf(5), xfs(1),
363 xlsfonts(1), fonts-conf(5) etc.
364
365 Q. My terminal emulator does not display cyrillic/pseudographics/...
366 A. If you have the 8-bit X11 code pages installed, and your emulator uses
367 "XLFD" font names, make sure that the font name ends with "-10616-1" instead
368 of "-*-*".
369
370 --
371
372 7. Legal information.
373
374
375 7.1. Licenses.
376
377 Terminus Font is licensed under the SIL Open Font License, Version 1.1.
378 The license is included as OFL.TXT, and is also available with a FAQ at:
379 http://scripts.sil.org/OFL
380
381 The font includes two variants of unicode range 2800-28FF, but does not
382 support Braille in any way.
383
384 The configure files, python and javascript sources are distributed under
385 the GNU General Public License version 2.0 or (at your choice) any later
386 version.
387
388
389 7.2. Copyright.
390
391 Terminus Font 4.49.1, Copyright (C) 2020 Dimitar Toshkov Zhekov.
392 Report bugs to <[email protected]>
393
394 Thanks to Anton Zinoviev, Tim Allen, Kir Koliushkin, Antonios Galanopoulos
395 and everyone else who helped.