emulatorFont resource
Type | Default | Option |
---|---|---|
string | 3270 | -efont
|
The font used for the x3270 emulator window. By default it is 3270, a 14-pixel clone of a real 3278 display font. Other 3270-specific fonts are available in 8-, 12-, 16-, 24- and 32-pixel sizes. Any constant-spaced (c) or mono-spaced (m) X11 font can also be used, provided that it implements a display character set compatible with the host code page. However, the special OIA symbols are only available with the 3270 fonts.
Notes for DBCS fonts
When using a DBCS host code page such as Chinese or Japanese, it is necessary to specify two fonts with this resource: The single-byte (SBCS) font and the double-byte (DBCS) font. The syntax is:
- sbcs-font+dbcs-font
For example:
x3270 -codepage cp935 -efont "3270gt16+-isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0"
Also note that the DBCS font should be approximately the same height as the SBCS font, and roughly twice the width. If this relationship does not hold, the display may be unreadable.
Required font encodings
Each host code page has an implied list of font encodings that can be used with it with x3270.
Note that in the table below, encodings starting with 3270cg- are proprietary encodings used by the special 3270 fonts, with the suffix n indicating parity with the ISO 8859-n encoding. (Exception: 3270cg-1a is ISO 8859-1 plus the Euro symbol.)
Code page | Aliases | SBCS encodings | DBCS encodings |
---|---|---|---|
bracket | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
||
cp037 | us | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp273 | german | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp275 | brazilian | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp277 | norwegian | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp278 | finnish swedish |
3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp280 | italian | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp284 | spanish | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp285 | uk | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp297 | french | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp424 | hebrew | 3270cg-8 iso10646-1 iso8859-8 |
|
cp500 | belgian | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp803 | hebrew-old | 3270cg-8 iso10646-1 iso8859-8 |
|
cp870 | polish slovenian |
iso10646-1 iso8859-2 |
|
cp871 | icelandic | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
|
cp875 | greek | 3270cg-7 iso10646-1 iso8859-7 |
|
cp880 | russian | iso10646-1 koi8-r |
|
cp930 | japanese-kana | iso10646-1 jisx0201.1976-0 |
jisx0208.1983-0 iso10646-1 |
cp935 | simplified-chinese | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
gb2312.1980-0 iso10646-1 |
cp937 | traditional-chinese | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
big5-0 iso10646-1 |
cp939 | japanese-latin | iso10646-1 jisx0201.1976-0 |
jisx0208.1983-0 iso10646-1 |
cp1026 | turkish | iso10646-1 iso8859-9 |
|
cp1047 | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
||
cp1140 | us-euro | 3270cg-1a 3270cg-1 iso10646-1 iso8859-15 |
|
cp1141 | german-euro | 3270cg-1a 3270cg-1 iso10646-1 iso8859-15 |
|
cp1142 | norwegian-euro | 3270cg-1a 3270cg-1 iso10646-1 iso8859-15 |
|
cp1143 | finnish-euro swedsh-euro |
3270cg-1a 3270cg-1 iso10646-1 iso8859-15 |
|
cp1144 | italian-euro | 3270cg-1a 3270cg-1 iso10646-1 iso8859-15 |
|
cp1145 | spanish-euro | 3270cg-1a 3270cg-1 iso10646-1 iso8859-15 |
|
cp1146 | uk-euro | 3270cg-1a 3270cg-1 iso10646-1 iso8859-15 |
|
cp1147 | french-euro | 3270cg-1a 3270cg-1 iso10646-1 iso8859-15 |
|
cp1148 | belgian-euro | 3270cg-1a 3270cg-1 iso10646-1 iso8859-15 |
|
cp1149 | icelandic-euro | 3270cg-1a 3270cg-1 iso10646-1 iso8859-15 |
|
cp1160 | thai | iso10646-1 iso8859-11 |
|
cp1388 | chinese-gb18030 | 3270cg-1a 3270cg-1 iso10646-1 iso8859-1 |
gb18030.2000-1 iso10646-1 |