comparison lisp/mule/mule-x-init.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents
children a145efe76779
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
1 ;;; mule-x-init.el --- initialization code for X Windows under MULE
2 ;; Copyright (C) 1994 Free Software Foundation, Inc.
3 ;; Copyright (C) 1996 Ben Wing <wing@666.com>
4
5 ;; Author: various
6 ;; Keywords: mule X11
7
8 ;; This file is part of XEmacs.
9 ;;
10 ;; XEmacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
13 ;; any later version.
14 ;;
15 ;; XEmacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
19 ;;
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with XEmacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
24
25 ;;; Commentary:
26
27 ;;; Code:
28
29 (defvar mule-x-win-initted nil)
30
31 (defun init-mule-x-win ()
32 "Initialize X Windows for MULE at startup. Don't call this."
33 (when (not mule-x-win-initted)
34 (define-specifier-tag 'mule-fonts
35 (lambda (device) (eq 'x (device-type device))))
36
37 (set-face-font
38 'default
39 '("-*-fixed-medium-r-*--16-*-iso8859-1"
40 "-*-fixed-medium-r-*--*-iso8859-1"
41 "-*-fixed-medium-r-*--*-iso8859-2"
42 "-*-fixed-medium-r-*--*-iso8859-3"
43 "-*-fixed-medium-r-*--*-iso8859-4"
44 "-*-fixed-medium-r-*--*-iso8859-7"
45 "-*-fixed-medium-r-*--*-iso8859-8"
46 "-*-fixed-medium-r-*--*-iso8859-5"
47 "-*-fixed-medium-r-*--*-iso8859-9"
48
49 ;; Following 3 fonts proposed by Teruhiko.Kurosaka@Japan.eng.sun
50 "-sun-gothic-medium-r-normal--14-120-75-75-c-60-jisx0201.1976-0"
51 "-sun-gothic-medium-r-normal--14-120-75-75-c-120-jisx0208.1983-0"
52 "-wadalab-gothic-medium-r-normal--14-120-75-75-c-120-jisx0212.1990-0"
53 ;; Other Japanese fonts
54 "-*-fixed-medium-r-*--*-jisx0201.1976-*"
55 "-*-fixed-medium-r-*--*-jisx0208.1983-*"
56 "-*-fixed-medium-r-*--*-jisx0212*-*"
57
58 ;; Chinese fonts
59 "-*-*-medium-r-*--*-gb2312.1980-*"
60
61 ;; Use One font specification for CNS chinese
62 ;; Too many variations in font naming
63 "-*-fixed-medium-r-*--*-cns11643*-*"
64 ;; "-*-fixed-medium-r-*--*-cns11643*2"
65 ;; "-*-fixed-medium-r-*--*-cns11643*3"
66 ;; "-*-fixed-medium-r-*--*-cns11643*4"
67 ;; "-*-fixed-medium-r-*--*-cns11643.5-0"
68 ;; "-*-fixed-medium-r-*--*-cns11643.6-0"
69 ;; "-*-fixed-medium-r-*--*-cns11643.7-0"
70
71 "-*-fixed-medium-r-*--*-big5*-*"
72 "-*-fixed-medium-r-*--*-sisheng_cwnn-0"
73
74 ;; Other fonts
75
76 ;; "-*-fixed-medium-r-*--*-viscii1.1-1"
77
78 ;; "-*-fixed-medium-r-*--*-mulearabic-0"
79 ;; "-*-fixed-medium-r-*--*-mulearabic-1"
80 ;; "-*-fixed-medium-r-*--*-mulearabic-2"
81
82 ;; "-*-fixed-medium-r-*--*-muleipa-1"
83 ;; "-*-fixed-medium-r-*--*-ethio-*"
84
85 "-*-mincho-medium-r-*--*-ksc5601.1987-*" ; Korean
86 "-*-fixed-medium-r-*--*-tis620.2529-1" ; Thai
87 )
88 'global '(mule-fonts) 'append)
89
90 (setq mule-x-win-initted t)))