104b94745Smrg! $XTermId: UXTerm.ad,v 1.14 2020/09/15 21:07:49 tom Exp $
220d2c4d2Smrg! -----------------------------------------------------------------------------
320d2c4d2Smrg! this file is part of xterm
420d2c4d2Smrg!
5f2e35a3aSmrg! Copyright 2000-2010,2020 by Thomas E. Dickey
620d2c4d2Smrg! 
720d2c4d2Smrg!                         All Rights Reserved
820d2c4d2Smrg! 
920d2c4d2Smrg! Permission is hereby granted, free of charge, to any person obtaining a
1020d2c4d2Smrg! copy of this software and associated documentation files (the
1120d2c4d2Smrg! "Software"), to deal in the Software without restriction, including
1220d2c4d2Smrg! without limitation the rights to use, copy, modify, merge, publish,
1320d2c4d2Smrg! distribute, sublicense, and/or sell copies of the Software, and to
1420d2c4d2Smrg! permit persons to whom the Software is furnished to do so, subject to
1520d2c4d2Smrg! the following conditions:
1620d2c4d2Smrg! 
1720d2c4d2Smrg! The above copyright notice and this permission notice shall be included
1820d2c4d2Smrg! in all copies or substantial portions of the Software.
1920d2c4d2Smrg! 
2020d2c4d2Smrg! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2120d2c4d2Smrg! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2220d2c4d2Smrg! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
2320d2c4d2Smrg! IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
2420d2c4d2Smrg! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2520d2c4d2Smrg! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2620d2c4d2Smrg! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2720d2c4d2Smrg! 
2820d2c4d2Smrg! Except as contained in this notice, the name(s) of the above copyright
2920d2c4d2Smrg! holders shall not be used in advertising or otherwise to promote the
3020d2c4d2Smrg! sale, use or other dealings in this Software without prior written
3120d2c4d2Smrg! authorization.
3220d2c4d2Smrg! -----------------------------------------------------------------------------
33d522f475Smrg! Use
34d522f475Smrg!	xterm -class UXTerm
35d522f475Smrg! to set resources for UTF-8 mode with corresponding fonts.
36d522f475Smrg! See the uxterm script for an example.
37d522f475Smrg
3820d2c4d2Smrg#include "XTerm"
39d522f475Smrg
40d522f475Smrg*fontMenu.Label:  Unicode Fonts
41d522f475Smrg*VT100.utf8:	1
42d522f475Smrg
43d522f475Smrg! This includes "XTerm-color" which includes "XTerm", which defines fonts.
44d522f475Smrg! Why set them here?
45d522f475Smrg!
46d522f475Smrg! Here is a simple description.  A technically precise one would be very long.
47d522f475Smrg! When xterm starts up, it uses the
48d522f475Smrg!
49d522f475Smrg!	*VT100.font
50d522f475Smrg!
51d522f475Smrg! resource, and if it is told to switch to wide-character (UTF-8) mode, it
52d522f475Smrg! checks if the given font is "wide", and if not looks for the
53d522f475Smrg!
54d522f475Smrg!	*VT100.utf8Fonts.font
55d522f475Smrg!
56d522f475Smrg! to obtain a wide font.  A "wide" font has more than 256 glyphs.  Typical
57d522f475Smrg! wide fonts have 10,000 glyphs.  If the original "*VT100.font" is not wide,
58d522f475Smrg! and xterm can load the *VT100.utf8Fonts.font, it will use that.
59d522f475Smrg!
60d522f475Smrg! Making the wide fonts associated with *VT100.font in this file allows uxterm
61d522f475Smrg! to skip that step.  It will use the fonts that the XTerm file gives for the
62d522f475Smrg! *VT100.uft8Fonts.font pattern.
63d522f475Smrg*VT100.font2:	-misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
64d522f475Smrg*VT100.font:	-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
65d522f475Smrg*VT100.font3:	-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
66d522f475Smrg*VT100.font4:	-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
67d522f475Smrg*VT100.font5:	-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
68d522f475Smrg*VT100.font6:	-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
69f2e35a3aSmrg*VT100.font7:	-adobe-courier-medium-r-normal--24-240-75-75-m-150-iso10646-1
70d522f475Smrg
71d522f475Smrg! Here is an alternate set of fonts with better support for bold:
72d522f475Smrg!*VT100.font2:	-efont-biwidth-medium-r-normal--10-100-75-75-p-50-iso10646-1
73d522f475Smrg!*VT100.font:	-efont-biwidth-medium-r-normal--10-100-75-75-p-50-iso10646-1
74d522f475Smrg!*VT100.font3:	-efont-biwidth-medium-r-normal--12-120-75-75-p-60-iso10646-1
75d522f475Smrg!*VT100.font4:	-efont-biwidth-medium-r-normal--14-140-75-75-p-70-iso10646-1
76d522f475Smrg!*VT100.font5:	-efont-biwidth-medium-r-normal--16-160-75-75-p-80-iso10646-1
77d522f475Smrg!*VT100.font6:	-efont-biwidth-medium-r-normal--24-240-75-75-p-120-iso10646-1
78