README 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. NOTE: This directory contains the terminus font compiled to a JSON format.
  2. Contents:
  3. 1. About.
  4. 1.1. Quick installation.
  5. 1.2. Legend.
  6. 1.3. Variants.
  7. 1.4. Notes.
  8. 2. Linux console.
  9. 2.1. consoletools.
  10. 2.2. kbd.
  11. 2.3. Quick reference.
  12. 2.4. Legend.
  13. 2.5. Notes.
  14. 3. UNIX console.
  15. 3.1. bsd-pcvt.
  16. 3.2. Legend.
  17. 3.3. Notes.
  18. 4. X11 Window System.
  19. 4.1. Installation.
  20. 4.2. Notes.
  21. 5. Frequently Asked Questions.
  22. 6. Legal information.
  23. 6.1. Licenses.
  24. 6.2. Copyright.
  25. 1. About.
  26. This archive contains source code for generating and installing Terminus
  27. Font for Linux console, BSD console and X11 Window System.
  28. - version 4.39
  29. - sizes 6x12, 8x14, 8x16, 10x18, 10x20, 11x22, 12x24, 14x28, 16x32
  30. - styles normal, bold, EGA/VGA bold
  31. - characters 891
  32. - format Bitmap Distribution Format (BDF) version 2.1
  33. The character set covers about 120 language sets and supports ISO8859-1/2/5/
  34. 7/9/13/15/16, Paratype-PT154/PT254, KOI8-R/U/E/F, Esperanto and many IBM,
  35. Windows and Macintosh code pages, as well as the IBM VGA, vt100 and xterm
  36. pseudographic characters.
  37. 1.1. Quick installation.
  38. The commands:
  39. $ ./configure [--prefix=PREFIX]
  40. $ make
  41. # make install fontdir
  42. compile and install the Linux console and X11 Window System fonts.
  43. The default PREFIX is /usr/local.
  44. 1.2. Legend.
  45. The file names are structured as follows:
  46. ter-u<SIZE><STYLE>.bdf
  47. where <SIZE> is the font height, and <STYLE> is n for normal (all sizes), b
  48. for bold (all sizes except 6x12) and v for EGA/VGA bold (8x14 and 8x16 only,
  49. makes use of the eight character matrix column).
  50. 1.3. Variants.
  51. Some characters are implemented in two variants. To use the alternate
  52. variant, execute:
  53. $ patch -p1 -i alt/<NAME>.diff
  54. before installation. See the font page for examples about the differences.
  55. If you want to combine hi2 with dv1 and/or ka2, apply hi2 and then hi2-dv1
  56. and/or hi2-ka2.
  57. 1.4. Notes.
  58. The commands marked with $ can be executed by a regular user.
  59. The configure commands are optional.
  60. The make commands require GNU make.
  61. A lot of characters are available only under X11/ISO10646-1 (UTF+8/Unicode).
  62. Sizes 6x12, 11x22, 14x28-bold and 16x32-normal are worse than the others.
  63. Avoid them.
  64. 210E and 210F are not italic.
  65. 2. Linux console.
  66. - sizes all available, see "About"
  67. - styles normal, bold, framebuffer-bold
  68. - code pages ISO8859-1/ISO8859-15/Windows-1252, ISO8859-2/Windows-1250,
  69. Windows-1251/ISO8859-5, ISO8859-9/Windows-1254, ISO8859-16,
  70. ISO8859-7/Windows-1253, ISO8859-13/Windows-1257, IBM-437,
  71. Bulgarian-MIK, KOI8-R, KOI8-U, Paratype-PT154, combined
  72. - format PC Screen Font (PSF) with unicode data
  73. 2.1. consoletools.
  74. $ ./configure [--prefix=PREFIX | --psfdir=DIRECTORY]
  75. $ make psf
  76. # make install-psf
  77. The files are compressed with gzip and installed in DIRECTORY. The default
  78. DIRECTORY is PREFIX/share/consolefonts. Requires Perl.
  79. If you lack mappings for Windows-1252/1250/1251/1254/1253/1257, ISO8859-16,
  80. IBM-437, KOI8-R, Bulgarian-MIK or Paratype-PT154/PT254, also run:
  81. $ ./configure [--prefix=PREFIX | --acmdir=DIRECTORY]
  82. $ make txt
  83. # make install-acm
  84. The default DIRECTORY is PREFIX/share/consoletrans. Requires awk.
  85. Uninstallation of the mappings is not supported. To load a font:
  86. $ consolechars [-m MAPPING] -f ter-<X><SIZE><STYLE>
  87. where <X> is a character identifying the code page as listed in p.2.4.
  88. 2.2. kbd.
  89. $ ./configure [--psfdir=DIRECTORY]
  90. $ make psf
  91. # make install-psf
  92. where DIRECTORY should be either PREFIX/lib/kbd/consolefonts or
  93. PREFIX/share/kbd/consolefonts, depending on kbd version. Missing mappings
  94. are installed with:
  95. $ ./configure [--prefix=PREFIX | --unidir=DIRECTORY]
  96. $ make txt
  97. # make install-uni
  98. The default DIRECTORY is PREFIX/share/kbd/consoletrans. Requires awk. To
  99. load a font:
  100. $ setfont [-m MAPPING] ter-<X><SIZE><STYLE>
  101. where <X> is a character identifying the code page as listed in p.2.4.
  102. 2.3. Quick reference.
  103. The commands:
  104. $ ./configure [--prefix=PREFIX | --psfdir=DIRECTORY | --ref=FILENAME]
  105. # make install-ref
  106. install the text from p.2.4 as FILENAME (the default is README.terminus)
  107. in DIRECTORY.
  108. 2.4. Legend.
  109. names mappings covered codepage(s)
  110. ter-1* iso01, iso15, cp1252 ISO8859-1, ISO8859-15, Windows-1252
  111. ter-2* iso02, cp1250 ISO8859-2, Windows-1250
  112. ter-7* iso07, cp1253 ISO8859-7, Windows-1253
  113. ter-9* iso09, cp1254 ISO8859-9, Windows-1254
  114. ter-c* cp1251, iso05 Windows-1251, ISO8859-5
  115. ter-d* iso13, cp1257 ISO8859-13, Windows-1257
  116. ter-g* iso16 ISO8859-16
  117. ter-i* cp437 IBM-437
  118. ter-k* koi8r KOI8-R
  119. ter-m* mik Bulgarian-MIK
  120. ter-p* pt154 Paratype-PT154
  121. ter-u* koi8u KOI8-U
  122. ter-v* all listed above all listed above and many others (about 110
  123. and many others language sets), 8 foreground colors
  124. names style
  125. ter-*n normal
  126. ter-*b bold
  127. ter-*f framebuffer-bold
  128. 2.5. Notes.
  129. The combined code page is based on IBM-437 (character 0xFF is ogonek).
  130. The ISO8859-16 font also includes all letters and accents from Windows-1250.
  131. 3. UNIX console.
  132. - sizes 8x14 and 8x16 only
  133. - styles normal, bold, framebuffer-bold
  134. - code pages ISO8859-1/Windows-1252, ISO8859-2, ISO8859-5, ISO8859-7,
  135. ISO8859-9/Windows-1254, ISO8859-13, ISO8859-15, ISO8859-16,
  136. Windows-1251, IBM-437, KOI8-R, KOI8-U, Paratype-PT154
  137. - format raw data
  138. 3.1. bsd-pcvt.
  139. $ ./configure [--prefix=PREFIX | --rawdir=DIRECTORY]
  140. $ make raw
  141. # make install.raw
  142. or, for file names with minus instead of period:
  143. # make install-raw
  144. The default DIRECTORY is PREFIX/share/misc/pcvtfonts. The fonts are
  145. installed uncompressed. Requires Perl. To load a font:
  146. $ loadfont -f /usr/share/misc/pcvtfonts/ter-<X><STYLE>.8<SIZE>
  147. or, for file names with minus instead of period:
  148. $ loadfont -f /usr/share/misc/pcvtfonts/ter-<X><STYLE>-8x<SIZE>
  149. where <X> is a character identifying the code page as listed in p.3.2.
  150. 3.2. Legend.
  151. names covered codepage(s)
  152. ter-1* ISO8859-1, Windows-1252
  153. ter-2* ISO8859-2
  154. ter-5* ISO8859-5
  155. ter-7* ISO8859-7
  156. ter-9* ISO8859-9, Windows-1254
  157. ter-c* Windows-1251
  158. ter-d* ISO8859-13
  159. ter-f* ISO8859-15
  160. ter-g* ISO8859-16
  161. ter-i* IBM-437
  162. ter-k* KOI8-R
  163. ter-p* Paratype-PT154
  164. ter-u* KOI8-U
  165. names style
  166. ter-*n normal
  167. ter-*b bold
  168. ter-*f framebuffer-bold
  169. 3.3. Notes.
  170. The RAW font contains data only and should be compatible with all UNIX
  171. systems. If any of the bold fonts doesn't look good try framebuffer-bold,
  172. or, if you are using an EGA/VGA adapter, program it to to clear column 8 of
  173. the character matrix (attribute controller register 0x10 bit 0x02).
  174. 4. X11 Window System.
  175. - sizes all available, see "About"
  176. - styles normal, bold
  177. - code pages ISO8859-1/Windows-1252, ISO8859-2, ISO8859-5, ISO8859-7,
  178. ISO8859-9/Windows-1254, ISO8859-13, ISO8859-15, ISO8859-16,
  179. Windows-1251, KOI8-R, KOI8-U, Paratype-PT154, ISO10646-1
  180. - format Portable Compiled Font (PCF)
  181. 4.1. Installation.
  182. $ ./configure [--prefix=PREFIX | --x11dir=DIRECTORY]
  183. $ make pcf
  184. # make install-pcf
  185. The files are compressed with gzip and installed in DIRECTORY. The default
  186. DIRECTORY is PREFIX/share/fonts/terminus. Requires Perl and bdftopcf.
  187. A copy of the normal 6x12 font is installed as "bold", because some X11
  188. libraries and applications substitute the missing bold fonts by shifting the
  189. normal fonts, and others do not recognize the bold style at all if the
  190. lowest font size lacks it. To install only the normal font, use "n12"
  191. instead of "pcf" in the above commands.
  192. To update the font cache in DIRECTORY after (un)installation, run:
  193. # make fontdir
  194. The configuration file which lists the font directories must contain
  195. DIRECTORY. If xfs or the X-server were active during the installation, they
  196. should be restarted so the font list can be updated.
  197. 4.2. Notes.
  198. The ISO8859-1 and ISO8859-9 fonts contain the Windows Western characters and
  199. can be used as Windows-1252 and Windows-1254 respectively.
  200. 5. Frequently Asked Questions.
  201. Q. Italic version?
  202. A. No. The quality is significantly lower, and preserving the font width
  203. requires overlapping characters, which are not handled very well by X11/Xft.
  204. If you need it than much, try mkitalic from FreeBSD or bdfslant from Debian.
  205. Q. Scalable version?
  206. A. Long story short, when the average display resolution becomes at least
  207. 150 DPI. Prefferably 200.
  208. Q. How about some new characters?
  209. A. Contact me and be ready to help.
  210. Q. The bold 6x12 font...
  211. A. ...does not exist, there is no space for a bold font in a 6x12 matrix.
  212. However, the "normal" font is somewhere between.
  213. Q. The font works in X11/Motif, but not in GNOME/KDE/Xfce.
  214. A. Try adding 75-yes-terminus.conf to the Fontconfig configuration files.
  215. See also mkfontscale(1), mkfontdir(1), fc-cache(1), xorg.conf(5), xfs(1),
  216. xlsfonts(1), fonts-conf(5) etc.
  217. 6. Legal information.
  218. 6.1. Licenses.
  219. Terminus Font is licensed under the SIL Open Font License, Version 1.1.
  220. The license is included as OFL.TXT, and is also available with a FAQ at:
  221. http://scripts.sil.org/OFL
  222. The files configure, configure.help, bdftopsf.pl and ucstoany.pl are
  223. distributed under the GNU General Public License version 2.0 or (at your
  224. choice) any later version.
  225. 6.2. Copyright.
  226. Terminus Font 4.39, Copyright (C) 2014 Dimitar Toshkov Zhekov.
  227. Report bugs to <dimitar.zhekov@gmail.com>
  228. Thanks to Anton Zinoviev, Tim Allen, Kir Koliushkin, Antonios Galanopoulos
  229. and all the others who helped.