annotate src/objects-msw.c @ 217:d44af0c54775 r20-4b7

Import from CVS: tag r20-4b7
author cvs
date Mon, 13 Aug 2007 10:08:34 +0200
parents 78f53ef88e17
children 0e522484dd2a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1 /* mswindows-specific Lisp objects.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
2 Copyright (C) 1993, 1994 Free Software Foundation, Inc.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
3 Copyright (C) 1995 Board of Trustees, University of Illinois.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
4 Copyright (C) 1995 Tinker Systems.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
5 Copyright (C) 1995, 1996 Ben Wing.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
6 Copyright (C) 1995 Sun Microsystems, Inc.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
7 Copyright (C) 1997 Jonathan Harris.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
8
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
9 This file is part of XEmacs.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
10
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
11 XEmacs is free software; you can redistribute it and/or modify it
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
12 under the terms of the GNU General Public License as published by the
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
13 Free Software Foundation; either version 2, or (at your option) any
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
14 later version.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
15
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
16 XEmacs is distributed in the hope that it will be useful, but WITHOUT
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
19 for more details.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
20
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
21 You should have received a copy of the GNU General Public License
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
22 along with XEmacs; see the file COPYING. If not, write to
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
23 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
24 Boston, MA 02111-1307, USA. */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
25
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
26 /* Synched up with: Not in FSF. */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
27
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
28 /* Authorship:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
29
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
30 Jamie Zawinski, Chuck Thompson, Ben Wing
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
31 Rewritten for mswindows by Jonathan Harris, November 1997 for 20.4.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
32 */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
33
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
34
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
35 /* TODO: palette handling */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
36
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
37 #include <config.h>
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
38 #include "lisp.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
39
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
40 #include "console-msw.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
41 #include "objects-msw.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
42
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
43 #ifdef MULE
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
44 #include "mule-charset.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
45 #endif
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
46
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
47 #include "buffer.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
48 #include "device.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
49 #include "insdel.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
50
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
51 #include "windows.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
52
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
53 typedef struct colormap_t
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
54 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
55 char *name;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
56 COLORREF colorref;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
57 } colormap_t;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
58
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
59 static CONST colormap_t mswindows_X_color_map[] =
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
60 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
61 {"Black" , PALETTERGB ( 0, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
62 {"Gray0" , PALETTERGB ( 0, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
63 {"Grey0" , PALETTERGB ( 0, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
64 {"Transparent" , PALETTERGB ( 0, 0, 1)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
65 {"NavyBlue" , PALETTERGB ( 0, 0,128)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
66 {"navy" , PALETTERGB ( 0, 0,128)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
67 {"blue4" , PALETTERGB ( 0, 0,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
68 {"MediumBlue" , PALETTERGB ( 0, 0,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
69 {"blue3" , PALETTERGB ( 0, 0,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
70 {"blue2" , PALETTERGB ( 0, 0,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
71 {"Blue" , PALETTERGB ( 0, 0,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
72 {"blue1" , PALETTERGB ( 0, 0,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
73 {"DarkGreen" , PALETTERGB ( 0, 86, 45)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
74 {"DeepSkyBlue4" , PALETTERGB ( 0,104,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
75 {"turquoise4" , PALETTERGB ( 0,134,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
76 {"green4" , PALETTERGB ( 0,139, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
77 {"SpringGreen4" , PALETTERGB ( 0,139, 69)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
78 {"cyan4" , PALETTERGB ( 0,139,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
79 {"MediumAquamarine" , PALETTERGB ( 0,147,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
80 {"DeepSkyBlue3" , PALETTERGB ( 0,154,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
81 {"DarkTurquoise" , PALETTERGB ( 0,166,166)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
82 {"LimeGreen" , PALETTERGB ( 0,175, 20)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
83 {"DeepSkyBlue2" , PALETTERGB ( 0,178,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
84 {"DeepSkyBlue" , PALETTERGB ( 0,191,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
85 {"DeepSkyBlue1" , PALETTERGB ( 0,191,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
86 {"turquoise3" , PALETTERGB ( 0,197,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
87 {"green3" , PALETTERGB ( 0,205, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
88 {"SpringGreen3" , PALETTERGB ( 0,205,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
89 {"cyan3" , PALETTERGB ( 0,205,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
90 {"MediumTurquoise" , PALETTERGB ( 0,210,210)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
91 {"turquoise2" , PALETTERGB ( 0,229,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
92 {"green2" , PALETTERGB ( 0,238, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
93 {"SpringGreen2" , PALETTERGB ( 0,238,118)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
94 {"cyan2" , PALETTERGB ( 0,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
95 {"turquoise1" , PALETTERGB ( 0,245,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
96 {"MediumSpringGreen" , PALETTERGB ( 0,250,154)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
97 {"Green" , PALETTERGB ( 0,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
98 {"green1" , PALETTERGB ( 0,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
99 {"SpringGreen" , PALETTERGB ( 0,255,127)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
100 {"SpringGreen1" , PALETTERGB ( 0,255,127)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
101 {"Cyan" , PALETTERGB ( 0,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
102 {"cyan1" , PALETTERGB ( 0,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
103 {"Gray1" , PALETTERGB ( 3, 3, 3)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
104 {"Grey1" , PALETTERGB ( 3, 3, 3)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
105 {"Gray2" , PALETTERGB ( 5, 5, 5)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
106 {"Grey2" , PALETTERGB ( 5, 5, 5)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
107 {"Gray3" , PALETTERGB ( 8, 8, 8)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
108 {"Grey3" , PALETTERGB ( 8, 8, 8)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
109 {"Gray4" , PALETTERGB ( 10, 10, 10)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
110 {"Grey4" , PALETTERGB ( 10, 10, 10)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
111 {"Gray5" , PALETTERGB ( 13, 13, 13)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
112 {"Grey5" , PALETTERGB ( 13, 13, 13)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
113 {"Gray6" , PALETTERGB ( 15, 15, 15)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
114 {"Grey6" , PALETTERGB ( 15, 15, 15)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
115 {"DodgerBlue4" , PALETTERGB ( 16, 78,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
116 {"Gray7" , PALETTERGB ( 18, 18, 18)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
117 {"Grey7" , PALETTERGB ( 18, 18, 18)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
118 {"Gray8" , PALETTERGB ( 20, 20, 20)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
119 {"Grey8" , PALETTERGB ( 20, 20, 20)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
120 {"Gray9" , PALETTERGB ( 23, 23, 23)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
121 {"Grey9" , PALETTERGB ( 23, 23, 23)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
122 {"DodgerBlue3" , PALETTERGB ( 24,116,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
123 {"MidnightBlue" , PALETTERGB ( 25, 25,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
124 {"Turquoise" , PALETTERGB ( 25,204,223)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
125 {"Gray10" , PALETTERGB ( 26, 26, 26)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
126 {"Grey10" , PALETTERGB ( 26, 26, 26)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
127 {"Gray11" , PALETTERGB ( 28, 28, 28)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
128 {"Grey11" , PALETTERGB ( 28, 28, 28)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
129 {"DodgerBlue2" , PALETTERGB ( 28,134,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
130 {"DodgerBlue" , PALETTERGB ( 30,144,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
131 {"DodgerBlue1" , PALETTERGB ( 30,144,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
132 {"Gray12" , PALETTERGB ( 31, 31, 31)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
133 {"Grey12" , PALETTERGB ( 31, 31, 31)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
134 {"LightSeaGreen" , PALETTERGB ( 32,178,170)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
135 {"Gray13" , PALETTERGB ( 33, 33, 33)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
136 {"Grey13" , PALETTERGB ( 33, 33, 33)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
137 {"Indigo2" , PALETTERGB ( 33,136,104)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
138 {"CornflowerBlue" , PALETTERGB ( 34, 34,152)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
139 {"ForestGreen" , PALETTERGB ( 34,139, 34)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
140 {"Gray14" , PALETTERGB ( 36, 36, 36)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
141 {"Grey14" , PALETTERGB ( 36, 36, 36)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
142 {"Gray15" , PALETTERGB ( 38, 38, 38)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
143 {"Grey15" , PALETTERGB ( 38, 38, 38)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
144 {"RoyalBlue4" , PALETTERGB ( 39, 64,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
145 {"Gray16" , PALETTERGB ( 41, 41, 41)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
146 {"Grey16" , PALETTERGB ( 41, 41, 41)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
147 {"Gray17" , PALETTERGB ( 43, 43, 43)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
148 {"Grey17" , PALETTERGB ( 43, 43, 43)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
149 {"Gray18" , PALETTERGB ( 46, 46, 46)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
150 {"Grey18" , PALETTERGB ( 46, 46, 46)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
151 {"SeaGreen" , PALETTERGB ( 46,139, 87)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
152 {"SeaGreen4" , PALETTERGB ( 46,139, 87)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
153 {"DarkSlateGray" , PALETTERGB ( 47, 79, 79)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
154 {"DarkSlateGrey" , PALETTERGB ( 47, 79, 79)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
155 {"Gray19" , PALETTERGB ( 48, 48, 48)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
156 {"Grey19" , PALETTERGB ( 48, 48, 48)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
157 {"MediumForestGreen" , PALETTERGB ( 50,129, 75)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
158 {"Aquamarine" , PALETTERGB ( 50,191,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
159 {"YellowGreen" , PALETTERGB ( 50,216, 56)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
160 {"Gray20" , PALETTERGB ( 51, 51, 51)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
161 {"Grey20" , PALETTERGB ( 51, 51, 51)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
162 {"MediumSeaGreen" , PALETTERGB ( 52,119,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
163 {"Gray21" , PALETTERGB ( 54, 54, 54)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
164 {"Grey21" , PALETTERGB ( 54, 54, 54)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
165 {"SteelBlue4" , PALETTERGB ( 54,100,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
166 {"Gray22" , PALETTERGB ( 56, 56, 56)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
167 {"Grey22" , PALETTERGB ( 56, 56, 56)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
168 {"DarkSlateBlue" , PALETTERGB ( 56, 75,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
169 {"RoyalBlue3" , PALETTERGB ( 58, 95,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
170 {"Gray23" , PALETTERGB ( 59, 59, 59)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
171 {"Grey23" , PALETTERGB ( 59, 59, 59)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
172 {"Gray24" , PALETTERGB ( 61, 61, 61)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
173 {"Grey24" , PALETTERGB ( 61, 61, 61)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
174 {"Gray25" , PALETTERGB ( 64, 64, 64)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
175 {"Grey25" , PALETTERGB ( 64, 64, 64)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
176 {"RoyalBlue" , PALETTERGB ( 65,105,225)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
177 {"Gray26" , PALETTERGB ( 66, 66, 66)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
178 {"Grey26" , PALETTERGB ( 66, 66, 66)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
179 {"RoyalBlue2" , PALETTERGB ( 67,110,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
180 {"SeaGreen3" , PALETTERGB ( 67,205,128)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
181 {"Gray27" , PALETTERGB ( 69, 69, 69)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
182 {"Grey27" , PALETTERGB ( 69, 69, 69)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
183 {"chartreuse4" , PALETTERGB ( 69,139, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
184 {"aquamarine4" , PALETTERGB ( 69,139,116)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
185 {"SteelBlue" , PALETTERGB ( 70,130,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
186 {"SlateBlue4" , PALETTERGB ( 71, 60,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
187 {"Gray28" , PALETTERGB ( 71, 71, 71)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
188 {"Grey28" , PALETTERGB ( 71, 71, 71)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
189 {"RoyalBlue1" , PALETTERGB ( 72,118,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
190 {"Gray29" , PALETTERGB ( 74, 74, 74)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
191 {"Grey29" , PALETTERGB ( 74, 74, 74)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
192 {"SkyBlue4" , PALETTERGB ( 74,112,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
193 {"Indigo" , PALETTERGB ( 75, 0,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
194 {"Gray30" , PALETTERGB ( 77, 77, 77)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
195 {"Grey30" , PALETTERGB ( 77, 77, 77)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
196 {"SeaGreen2" , PALETTERGB ( 78,238,148)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
197 {"Gray31" , PALETTERGB ( 79, 79, 79)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
198 {"Grey31" , PALETTERGB ( 79, 79, 79)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
199 {"SteelBlue3" , PALETTERGB ( 79,148,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
200 {"Gray32" , PALETTERGB ( 82, 82, 82)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
201 {"Grey32" , PALETTERGB ( 82, 82, 82)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
202 {"DarkSlateGray4" , PALETTERGB ( 82,139,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
203 {"CadetBlue4" , PALETTERGB ( 83,134,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
204 {"DimGray" , PALETTERGB ( 84, 84, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
205 {"DimGrey" , PALETTERGB ( 84, 84, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
206 {"Gray33" , PALETTERGB ( 84, 84, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
207 {"Grey33" , PALETTERGB ( 84, 84, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
208 {"PaleGreen4" , PALETTERGB ( 84,139, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
209 {"SeaGreen1" , PALETTERGB ( 84,255,159)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
210 {"purple4" , PALETTERGB ( 85, 26,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
211 {"DarkOliveGreen" , PALETTERGB ( 85, 86, 47)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
212 {"Gray34" , PALETTERGB ( 87, 87, 87)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
213 {"Grey34" , PALETTERGB ( 87, 87, 87)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
214 {"Gray35" , PALETTERGB ( 89, 89, 89)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
215 {"Grey35" , PALETTERGB ( 89, 89, 89)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
216 {"Gray36" , PALETTERGB ( 92, 92, 92)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
217 {"Grey36" , PALETTERGB ( 92, 92, 92)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
218 {"SteelBlue2" , PALETTERGB ( 92,172,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
219 {"MediumPurple4" , PALETTERGB ( 93, 71,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
220 {"Gray37" , PALETTERGB ( 94, 94, 94)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
221 {"Grey37" , PALETTERGB ( 94, 94, 94)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
222 {"CadetBlue" , PALETTERGB ( 95,146,158)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
223 {"LightSkyBlue4" , PALETTERGB ( 96,123,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
224 {"Gray38" , PALETTERGB ( 97, 97, 97)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
225 {"Grey38" , PALETTERGB ( 97, 97, 97)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
226 {"Gray39" , PALETTERGB ( 99, 99, 99)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
227 {"Grey39" , PALETTERGB ( 99, 99, 99)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
228 {"SteelBlue1" , PALETTERGB ( 99,184,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
229 {"Gray40" , PALETTERGB (102,102,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
230 {"Grey40" , PALETTERGB (102,102,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
231 {"PaleTurquoise4" , PALETTERGB (102,139,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
232 {"chartreuse3" , PALETTERGB (102,205, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
233 {"aquamarine3" , PALETTERGB (102,205,170)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
234 {"DarkOrchid4" , PALETTERGB (104, 34,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
235 {"LightBlue4" , PALETTERGB (104,131,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
236 {"SlateBlue3" , PALETTERGB (105, 89,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
237 {"Gray41" , PALETTERGB (105,105,105)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
238 {"Grey41" , PALETTERGB (105,105,105)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
239 {"OliveDrab4" , PALETTERGB (105,139, 34)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
240 {"DarkSeaGreen4" , PALETTERGB (105,139,105)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
241 {"SlateBlue" , PALETTERGB (106, 90,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
242 {"MediumSlateBlue" , PALETTERGB (106,106,141)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
243 {"IndianRed" , PALETTERGB (107, 57, 57)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
244 {"Gray42" , PALETTERGB (107,107,107)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
245 {"Grey42" , PALETTERGB (107,107,107)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
246 {"OliveDrab" , PALETTERGB (107,142, 35)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
247 {"SlateGray4" , PALETTERGB (108,123,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
248 {"SkyBlue3" , PALETTERGB (108,166,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
249 {"Gray43" , PALETTERGB (110,110,110)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
250 {"Grey43" , PALETTERGB (110,110,110)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
251 {"LightSteelBlue4" , PALETTERGB (110,123,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
252 {"DarkOliveGreen4" , PALETTERGB (110,139, 61)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
253 {"Gray44" , PALETTERGB (112,112,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
254 {"Grey44" , PALETTERGB (112,112,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
255 {"SlateGray" , PALETTERGB (112,128,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
256 {"SlateGrey" , PALETTERGB (112,128,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
257 {"SkyBlue" , PALETTERGB (114,159,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
258 {"Gray45" , PALETTERGB (115,115,115)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
259 {"Grey45" , PALETTERGB (115,115,115)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
260 {"PaleGreen" , PALETTERGB (115,222,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
261 {"Gray46" , PALETTERGB (117,117,117)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
262 {"Grey46" , PALETTERGB (117,117,117)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
263 {"chartreuse2" , PALETTERGB (118,238, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
264 {"aquamarine2" , PALETTERGB (118,238,198)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
265 {"LightSlateGray" , PALETTERGB (119,136,153)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
266 {"LightSlateGrey" , PALETTERGB (119,136,153)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
267 {"Gray47" , PALETTERGB (120,120,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
268 {"Grey47" , PALETTERGB (120,120,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
269 {"DarkSlateGray3" , PALETTERGB (121,205,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
270 {"MediumOrchid4" , PALETTERGB (122, 55,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
271 {"SlateBlue2" , PALETTERGB (122,103,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
272 {"Gray48" , PALETTERGB (122,122,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
273 {"Grey48" , PALETTERGB (122,122,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
274 {"LightCyan4" , PALETTERGB (122,139,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
275 {"CadetBlue3" , PALETTERGB (122,197,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
276 {"LightSteelBlue" , PALETTERGB (124,152,211)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
277 {"PaleGreen3" , PALETTERGB (124,205,124)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
278 {"LawnGreen" , PALETTERGB (124,252, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
279 {"purple3" , PALETTERGB (125, 38,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
280 {"Gray49" , PALETTERGB (125,125,125)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
281 {"Grey49" , PALETTERGB (125,125,125)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
282 {"Gray" , PALETTERGB (126,126,126)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
283 {"Grey" , PALETTERGB (126,126,126)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
284 {"SkyBlue2" , PALETTERGB (126,192,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
285 {"Gray50" , PALETTERGB (127,127,127)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
286 {"Grey50" , PALETTERGB (127,127,127)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
287 {"chartreuse" , PALETTERGB (127,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
288 {"chartreuse1" , PALETTERGB (127,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
289 {"aquamarine1" , PALETTERGB (127,255,212)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
290 {"Gray51" , PALETTERGB (130,130,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
291 {"Grey51" , PALETTERGB (130,130,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
292 {"SlateBlue1" , PALETTERGB (131,111,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
293 {"honeydew4" , PALETTERGB (131,139,131)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
294 {"azure4" , PALETTERGB (131,139,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
295 {"LightSlateBlue" , PALETTERGB (132,112,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
296 {"Gray52" , PALETTERGB (133,133,133)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
297 {"Grey52" , PALETTERGB (133,133,133)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
298 {"Gray53" , PALETTERGB (135,135,135)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
299 {"Grey53" , PALETTERGB (135,135,135)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
300 {"LightSkyBlue" , PALETTERGB (135,206,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
301 {"SkyBlue1" , PALETTERGB (135,206,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
302 {"MediumPurple3" , PALETTERGB (137,104,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
303 {"BlueViolet" , PALETTERGB (138, 43,226)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
304 {"Gray54" , PALETTERGB (138,138,138)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
305 {"Grey54" , PALETTERGB (138,138,138)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
306 {"red4" , PALETTERGB (139, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
307 {"magenta4" , PALETTERGB (139, 0,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
308 {"DeepPink4" , PALETTERGB (139, 10, 80)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
309 {"firebrick4" , PALETTERGB (139, 26, 26)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
310 {"maroon4" , PALETTERGB (139, 28, 98)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
311 {"DarkOrchid" , PALETTERGB (139, 32,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
312 {"VioletRed4" , PALETTERGB (139, 34, 82)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
313 {"brown4" , PALETTERGB (139, 35, 35)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
314 {"OrangeRed4" , PALETTERGB (139, 37, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
315 {"tomato4" , PALETTERGB (139, 54, 38)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
316 {"IndianRed4" , PALETTERGB (139, 58, 58)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
317 {"HotPink4" , PALETTERGB (139, 58, 98)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
318 {"coral4" , PALETTERGB (139, 62, 47)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
319 {"DarkOrange4" , PALETTERGB (139, 69, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
320 {"SaddleBrown" , PALETTERGB (139, 69, 19)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
321 {"chocolate4" , PALETTERGB (139, 69, 19)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
322 {"sienna4" , PALETTERGB (139, 71, 38)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
323 {"PaleVioletRed4" , PALETTERGB (139, 71, 93)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
324 {"orchid4" , PALETTERGB (139, 71,137)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
325 {"salmon4" , PALETTERGB (139, 76, 57)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
326 {"LightSalmon4" , PALETTERGB (139, 87, 66)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
327 {"orange4" , PALETTERGB (139, 90, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
328 {"tan4" , PALETTERGB (139, 90, 43)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
329 {"LightPink4" , PALETTERGB (139, 95,101)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
330 {"pink4" , PALETTERGB (139, 99,108)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
331 {"DarkGoldenrod4" , PALETTERGB (139,101, 8)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
332 {"plum4" , PALETTERGB (139,102,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
333 {"goldenrod4" , PALETTERGB (139,105, 20)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
334 {"RosyBrown4" , PALETTERGB (139,105,105)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
335 {"burlywood4" , PALETTERGB (139,115, 85)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
336 {"gold4" , PALETTERGB (139,117, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
337 {"PeachPuff4" , PALETTERGB (139,119,101)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
338 {"NavajoWhite4" , PALETTERGB (139,121, 94)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
339 {"thistle4" , PALETTERGB (139,123,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
340 {"bisque4" , PALETTERGB (139,125,107)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
341 {"MistyRose4" , PALETTERGB (139,125,123)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
342 {"wheat4" , PALETTERGB (139,126,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
343 {"LightGoldenrod4" , PALETTERGB (139,129, 76)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
344 {"AntiqueWhite4" , PALETTERGB (139,131,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
345 {"LavenderBlush4" , PALETTERGB (139,131,134)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
346 {"khaki4" , PALETTERGB (139,134, 78)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
347 {"seashell4" , PALETTERGB (139,134,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
348 {"cornsilk4" , PALETTERGB (139,136,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
349 {"LemonChiffon4" , PALETTERGB (139,137,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
350 {"snow4" , PALETTERGB (139,137,137)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
351 {"yellow4" , PALETTERGB (139,139, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
352 {"LightYellow4" , PALETTERGB (139,139,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
353 {"ivory4" , PALETTERGB (139,139,131)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
354 {"Gray55" , PALETTERGB (140,140,140)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
355 {"Grey55" , PALETTERGB (140,140,140)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
356 {"LightSkyBlue3" , PALETTERGB (141,182,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
357 {"DarkSlateGray2" , PALETTERGB (141,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
358 {"Firebrick" , PALETTERGB (142, 35, 35)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
359 {"CadetBlue2" , PALETTERGB (142,229,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
360 {"Maroon" , PALETTERGB (143, 0, 82)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
361 {"Gray56" , PALETTERGB (143,143,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
362 {"Grey56" , PALETTERGB (143,143,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
363 {"DarkSeaGreen" , PALETTERGB (143,188,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
364 {"PaleGreen2" , PALETTERGB (144,238,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
365 {"purple2" , PALETTERGB (145, 44,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
366 {"Gray57" , PALETTERGB (145,145,145)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
367 {"Grey57" , PALETTERGB (145,145,145)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
368 {"MediumPurple" , PALETTERGB (147,112,219)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
369 {"DarkViolet" , PALETTERGB (148, 0,211)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
370 {"Gray58" , PALETTERGB (148,148,148)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
371 {"Grey58" , PALETTERGB (148,148,148)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
372 {"Sienna" , PALETTERGB (150, 82, 45)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
373 {"Gray59" , PALETTERGB (150,150,150)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
374 {"Grey59" , PALETTERGB (150,150,150)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
375 {"PaleTurquoise3" , PALETTERGB (150,205,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
376 {"DarkSlateGray1" , PALETTERGB (151,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
377 {"CadetBlue1" , PALETTERGB (152,245,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
378 {"Gray60" , PALETTERGB (153,153,153)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
379 {"Grey60" , PALETTERGB (153,153,153)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
380 {"DarkOrchid3" , PALETTERGB (154, 50,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
381 {"LightBlue3" , PALETTERGB (154,192,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
382 {"OliveDrab3" , PALETTERGB (154,205, 50)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
383 {"PaleGreen1" , PALETTERGB (154,255,154)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
384 {"purple1" , PALETTERGB (155, 48,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
385 {"DarkSeaGreen3" , PALETTERGB (155,205,155)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
386 {"Violet" , PALETTERGB (156, 62,206)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
387 {"Gray61" , PALETTERGB (156,156,156)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
388 {"Grey61" , PALETTERGB (156,156,156)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
389 {"Gray62" , PALETTERGB (158,158,158)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
390 {"Grey62" , PALETTERGB (158,158,158)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
391 {"MediumPurple2" , PALETTERGB (159,121,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
392 {"SlateGray3" , PALETTERGB (159,182,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
393 {"purple" , PALETTERGB (160, 32,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
394 {"Gray63" , PALETTERGB (161,161,161)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
395 {"Grey63" , PALETTERGB (161,161,161)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
396 {"LightSteelBlue3" , PALETTERGB (162,181,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
397 {"DarkOliveGreen3" , PALETTERGB (162,205, 90)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
398 {"Gray64" , PALETTERGB (163,163,163)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
399 {"Grey64" , PALETTERGB (163,163,163)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
400 {"LightSkyBlue2" , PALETTERGB (164,211,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
401 {"Brown" , PALETTERGB (165, 42, 42)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
402 {"Gray65" , PALETTERGB (166,166,166)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
403 {"Grey65" , PALETTERGB (166,166,166)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
404 {"Gray66" , PALETTERGB (168,168,168)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
405 {"Grey66" , PALETTERGB (168,168,168)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
406 {"LightGray" , PALETTERGB (168,168,168)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
407 {"LightGrey" , PALETTERGB (168,168,168)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
408 {"MediumPurple1" , PALETTERGB (171,130,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
409 {"Gray67" , PALETTERGB (171,171,171)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
410 {"Grey67" , PALETTERGB (171,171,171)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
411 {"Gray68" , PALETTERGB (173,173,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
412 {"Grey68" , PALETTERGB (173,173,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
413 {"LightBlue" , PALETTERGB (173,216,230)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
414 {"GreenYellow" , PALETTERGB (173,255, 47)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
415 {"PaleTurquoise2" , PALETTERGB (174,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
416 {"PaleTurquoise" , PALETTERGB (175,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
417 {"Gray69" , PALETTERGB (176,176,176)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
418 {"Grey69" , PALETTERGB (176,176,176)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
419 {"PowderBlue" , PALETTERGB (176,224,230)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
420 {"LightSkyBlue1" , PALETTERGB (176,226,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
421 {"DarkOrchid2" , PALETTERGB (178, 58,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
422 {"LightBlue2" , PALETTERGB (178,223,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
423 {"Khaki" , PALETTERGB (179,179,126)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
424 {"Gray70" , PALETTERGB (179,179,179)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
425 {"Grey70" , PALETTERGB (179,179,179)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
426 {"OliveDrab2" , PALETTERGB (179,238, 58)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
427 {"MediumOrchid3" , PALETTERGB (180, 82,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
428 {"LightCyan3" , PALETTERGB (180,205,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
429 {"DarkSeaGreen2" , PALETTERGB (180,238,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
430 {"Gray71" , PALETTERGB (181,181,181)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
431 {"Grey71" , PALETTERGB (181,181,181)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
432 {"DarkGoldenrod" , PALETTERGB (184,134, 11)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
433 {"Gray72" , PALETTERGB (184,184,184)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
434 {"Grey72" , PALETTERGB (184,184,184)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
435 {"SlateGray2" , PALETTERGB (185,211,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
436 {"MediumOrchid" , PALETTERGB (186, 85,211)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
437 {"Gray73" , PALETTERGB (186,186,186)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
438 {"Grey73" , PALETTERGB (186,186,186)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
439 {"PaleTurquoise1" , PALETTERGB (187,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
440 {"RosyBrown" , PALETTERGB (188,143,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
441 {"LightSteelBlue2" , PALETTERGB (188,210,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
442 {"DarkOliveGreen2" , PALETTERGB (188,238,104)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
443 {"DarkKhaki" , PALETTERGB (189,183,107)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
444 {"Gray74" , PALETTERGB (189,189,189)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
445 {"Grey74" , PALETTERGB (189,189,189)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
446 {"DarkOrchid1" , PALETTERGB (191, 62,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
447 {"Gray75" , PALETTERGB (191,191,191)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
448 {"Grey75" , PALETTERGB (191,191,191)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
449 {"LightBlue1" , PALETTERGB (191,239,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
450 {"OliveDrab1" , PALETTERGB (192,255, 62)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
451 {"honeydew3" , PALETTERGB (193,205,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
452 {"azure3" , PALETTERGB (193,205,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
453 {"DarkSeaGreen1" , PALETTERGB (193,255,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
454 {"Gray76" , PALETTERGB (194,194,194)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
455 {"Grey76" , PALETTERGB (194,194,194)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
456 {"Gray77" , PALETTERGB (196,196,196)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
457 {"Grey77" , PALETTERGB (196,196,196)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
458 {"Plum" , PALETTERGB (197, 72,155)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
459 {"SlateGray1" , PALETTERGB (198,226,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
460 {"MediumVioletRed" , PALETTERGB (199, 21,133)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
461 {"Gray78" , PALETTERGB (199,199,199)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
462 {"Grey78" , PALETTERGB (199,199,199)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
463 {"Gray79" , PALETTERGB (201,201,201)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
464 {"Grey79" , PALETTERGB (201,201,201)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
465 {"LightSteelBlue1" , PALETTERGB (202,225,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
466 {"DarkOliveGreen1" , PALETTERGB (202,255,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
467 {"Gray80" , PALETTERGB (204,204,204)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
468 {"Grey80" , PALETTERGB (204,204,204)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
469 {"red3" , PALETTERGB (205, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
470 {"magenta3" , PALETTERGB (205, 0,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
471 {"DeepPink3" , PALETTERGB (205, 16,118)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
472 {"firebrick3" , PALETTERGB (205, 38, 38)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
473 {"maroon3" , PALETTERGB (205, 41,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
474 {"VioletRed3" , PALETTERGB (205, 50,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
475 {"brown3" , PALETTERGB (205, 51, 51)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
476 {"OrangeRed3" , PALETTERGB (205, 55, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
477 {"tomato3" , PALETTERGB (205, 79, 57)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
478 {"IndianRed3" , PALETTERGB (205, 85, 85)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
479 {"coral3" , PALETTERGB (205, 91, 69)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
480 {"HotPink3" , PALETTERGB (205, 96,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
481 {"DarkOrange3" , PALETTERGB (205,102, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
482 {"chocolate3" , PALETTERGB (205,102, 29)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
483 {"sienna3" , PALETTERGB (205,104, 57)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
484 {"PaleVioletRed3" , PALETTERGB (205,104,137)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
485 {"orchid3" , PALETTERGB (205,105,201)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
486 {"salmon3" , PALETTERGB (205,112, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
487 {"LightSalmon3" , PALETTERGB (205,129, 98)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
488 {"orange3" , PALETTERGB (205,133, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
489 {"peru" , PALETTERGB (205,133, 63)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
490 {"tan3" , PALETTERGB (205,133, 63)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
491 {"LightPink3" , PALETTERGB (205,140,149)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
492 {"pink3" , PALETTERGB (205,145,158)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
493 {"DarkGoldenrod3" , PALETTERGB (205,149, 12)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
494 {"plum3" , PALETTERGB (205,150,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
495 {"goldenrod3" , PALETTERGB (205,155, 29)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
496 {"RosyBrown3" , PALETTERGB (205,155,155)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
497 {"burlywood3" , PALETTERGB (205,170,125)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
498 {"gold3" , PALETTERGB (205,173, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
499 {"PeachPuff3" , PALETTERGB (205,175,149)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
500 {"NavajoWhite3" , PALETTERGB (205,179,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
501 {"thistle3" , PALETTERGB (205,181,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
502 {"bisque3" , PALETTERGB (205,183,158)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
503 {"MistyRose3" , PALETTERGB (205,183,181)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
504 {"wheat3" , PALETTERGB (205,186,150)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
505 {"LightGoldenrod3" , PALETTERGB (205,190,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
506 {"AntiqueWhite3" , PALETTERGB (205,192,176)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
507 {"LavenderBlush3" , PALETTERGB (205,193,197)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
508 {"seashell3" , PALETTERGB (205,197,191)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
509 {"khaki3" , PALETTERGB (205,198,115)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
510 {"cornsilk3" , PALETTERGB (205,200,177)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
511 {"LemonChiffon3" , PALETTERGB (205,201,165)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
512 {"snow3" , PALETTERGB (205,201,201)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
513 {"yellow3" , PALETTERGB (205,205, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
514 {"LightYellow3" , PALETTERGB (205,205,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
515 {"ivory3" , PALETTERGB (205,205,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
516 {"Gray81" , PALETTERGB (207,207,207)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
517 {"Grey81" , PALETTERGB (207,207,207)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
518 {"VioletRed" , PALETTERGB (208, 32,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
519 {"MediumOrchid2" , PALETTERGB (209, 95,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
520 {"MediumGoldenrod" , PALETTERGB (209,193,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
521 {"Gray82" , PALETTERGB (209,209,209)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
522 {"Grey82" , PALETTERGB (209,209,209)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
523 {"LightCyan2" , PALETTERGB (209,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
524 {"chocolate" , PALETTERGB (210,105, 30)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
525 {"tan" , PALETTERGB (210,180,140)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
526 {"Gray83" , PALETTERGB (212,212,212)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
527 {"Grey83" , PALETTERGB (212,212,212)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
528 {"Gray84" , PALETTERGB (214,214,214)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
529 {"Grey84" , PALETTERGB (214,214,214)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
530 {"Thistle" , PALETTERGB (216,191,216)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
531 {"Gray85" , PALETTERGB (217,217,217)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
532 {"Grey85" , PALETTERGB (217,217,217)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
533 {"orchid" , PALETTERGB (218,112,214)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
534 {"goldenrod" , PALETTERGB (218,165, 32)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
535 {"Gold" , PALETTERGB (218,170, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
536 {"PaleVioletRed" , PALETTERGB (219,112,147)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
537 {"Gray86" , PALETTERGB (219,219,219)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
538 {"Grey86" , PALETTERGB (219,219,219)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
539 {"Crimson" , PALETTERGB (220, 20, 60)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
540 {"gainsboro" , PALETTERGB (220,220,220)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
541 {"burlywood" , PALETTERGB (222,184,135)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
542 {"Gray87" , PALETTERGB (222,222,222)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
543 {"Grey87" , PALETTERGB (222,222,222)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
544 {"MediumOrchid1" , PALETTERGB (224,102,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
545 {"Gray88" , PALETTERGB (224,224,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
546 {"Grey88" , PALETTERGB (224,224,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
547 {"honeydew2" , PALETTERGB (224,238,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
548 {"azure2" , PALETTERGB (224,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
549 {"LightCyan" , PALETTERGB (224,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
550 {"LightCyan1" , PALETTERGB (224,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
551 {"Gray89" , PALETTERGB (227,227,227)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
552 {"Grey89" , PALETTERGB (227,227,227)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
553 {"Gray90" , PALETTERGB (229,229,229)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
554 {"Grey90" , PALETTERGB (229,229,229)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
555 {"lavender" , PALETTERGB (230,230,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
556 {"Gray91" , PALETTERGB (232,232,232)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
557 {"Grey91" , PALETTERGB (232,232,232)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
558 {"DarkSalmon" , PALETTERGB (233,150,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
559 {"Salmon" , PALETTERGB (233,150,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
560 {"Gray92" , PALETTERGB (235,235,235)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
561 {"Grey92" , PALETTERGB (235,235,235)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
562 {"Gray93" , PALETTERGB (237,237,237)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
563 {"Grey93" , PALETTERGB (237,237,237)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
564 {"red2" , PALETTERGB (238, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
565 {"magenta2" , PALETTERGB (238, 0,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
566 {"DeepPink2" , PALETTERGB (238, 18,137)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
567 {"firebrick2" , PALETTERGB (238, 44, 44)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
568 {"maroon2" , PALETTERGB (238, 48,167)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
569 {"VioletRed2" , PALETTERGB (238, 58,140)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
570 {"brown2" , PALETTERGB (238, 59, 59)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
571 {"OrangeRed2" , PALETTERGB (238, 64, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
572 {"tomato2" , PALETTERGB (238, 92, 66)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
573 {"IndianRed2" , PALETTERGB (238, 99, 99)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
574 {"coral2" , PALETTERGB (238,106, 80)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
575 {"HotPink2" , PALETTERGB (238,106,167)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
576 {"DarkOrange2" , PALETTERGB (238,118, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
577 {"chocolate2" , PALETTERGB (238,118, 33)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
578 {"sienna2" , PALETTERGB (238,121, 66)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
579 {"PaleVioletRed2" , PALETTERGB (238,121,159)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
580 {"orchid2" , PALETTERGB (238,122,233)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
581 {"salmon2" , PALETTERGB (238,130, 98)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
582 {"LightSalmon2" , PALETTERGB (238,149,114)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
583 {"orange2" , PALETTERGB (238,154, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
584 {"tan2" , PALETTERGB (238,154, 73)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
585 {"LightPink2" , PALETTERGB (238,162,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
586 {"pink2" , PALETTERGB (238,169,184)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
587 {"DarkGoldenrod2" , PALETTERGB (238,173, 14)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
588 {"plum2" , PALETTERGB (238,174,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
589 {"goldenrod2" , PALETTERGB (238,180, 34)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
590 {"RosyBrown2" , PALETTERGB (238,180,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
591 {"burlywood2" , PALETTERGB (238,197,145)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
592 {"gold2" , PALETTERGB (238,201, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
593 {"PeachPuff2" , PALETTERGB (238,203,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
594 {"NavajoWhite2" , PALETTERGB (238,207,161)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
595 {"thistle2" , PALETTERGB (238,210,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
596 {"bisque2" , PALETTERGB (238,213,183)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
597 {"MistyRose2" , PALETTERGB (238,213,210)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
598 {"wheat2" , PALETTERGB (238,216,174)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
599 {"LightGoldenrod2" , PALETTERGB (238,220,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
600 {"LightGoldenrod" , PALETTERGB (238,221,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
601 {"AntiqueWhite2" , PALETTERGB (238,223,204)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
602 {"LavenderBlush2" , PALETTERGB (238,224,229)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
603 {"seashell2" , PALETTERGB (238,229,222)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
604 {"khaki2" , PALETTERGB (238,230,133)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
605 {"PaleGoldenrod" , PALETTERGB (238,232,170)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
606 {"cornsilk2" , PALETTERGB (238,232,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
607 {"LemonChiffon2" , PALETTERGB (238,233,191)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
608 {"snow2" , PALETTERGB (238,233,233)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
609 {"yellow2" , PALETTERGB (238,238, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
610 {"LightYellow2" , PALETTERGB (238,238,209)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
611 {"ivory2" , PALETTERGB (238,238,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
612 {"LightCoral" , PALETTERGB (240,128,128)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
613 {"Gray94" , PALETTERGB (240,240,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
614 {"Grey94" , PALETTERGB (240,240,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
615 {"AliceBlue" , PALETTERGB (240,248,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
616 {"honeydew" , PALETTERGB (240,255,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
617 {"honeydew1" , PALETTERGB (240,255,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
618 {"azure" , PALETTERGB (240,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
619 {"azure1" , PALETTERGB (240,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
620 {"Gray95" , PALETTERGB (242,242,242)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
621 {"Grey95" , PALETTERGB (242,242,242)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
622 {"SandyBrown" , PALETTERGB (244,164, 96)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
623 {"Wheat" , PALETTERGB (245,222,179)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
624 {"beige" , PALETTERGB (245,245,220)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
625 {"Gray96" , PALETTERGB (245,245,245)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
626 {"Grey96" , PALETTERGB (245,245,245)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
627 {"WhiteSmoke" , PALETTERGB (245,245,245)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
628 {"MintCream" , PALETTERGB (245,255,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
629 {"Gray97" , PALETTERGB (247,247,247)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
630 {"Grey97" , PALETTERGB (247,247,247)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
631 {"GhostWhite" , PALETTERGB (248,248,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
632 {"AntiqueWhite" , PALETTERGB (250,235,215)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
633 {"linen" , PALETTERGB (250,240,230)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
634 {"LightGoldenrodYellow" , PALETTERGB (250,250,210)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
635 {"Gray98" , PALETTERGB (250,250,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
636 {"Grey98" , PALETTERGB (250,250,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
637 {"Gray99" , PALETTERGB (252,252,252)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
638 {"Grey99" , PALETTERGB (252,252,252)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
639 {"OldLace" , PALETTERGB (253,245,230)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
640 {"Red" , PALETTERGB (255, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
641 {"red1" , PALETTERGB (255, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
642 {"Magenta" , PALETTERGB (255, 0,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
643 {"magenta1" , PALETTERGB (255, 0,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
644 {"DeepPink" , PALETTERGB (255, 20,147)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
645 {"DeepPink1" , PALETTERGB (255, 20,147)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
646 {"firebrick1" , PALETTERGB (255, 48, 48)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
647 {"maroon1" , PALETTERGB (255, 52,179)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
648 {"VioletRed1" , PALETTERGB (255, 62,150)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
649 {"brown1" , PALETTERGB (255, 64, 64)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
650 {"OrangeRed" , PALETTERGB (255, 69, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
651 {"OrangeRed1" , PALETTERGB (255, 69, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
652 {"tomato" , PALETTERGB (255, 99, 71)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
653 {"tomato1" , PALETTERGB (255, 99, 71)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
654 {"HotPink" , PALETTERGB (255,105,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
655 {"IndianRed1" , PALETTERGB (255,106,106)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
656 {"HotPink1" , PALETTERGB (255,110,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
657 {"Coral" , PALETTERGB (255,114, 86)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
658 {"coral1" , PALETTERGB (255,114, 86)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
659 {"DarkOrange1" , PALETTERGB (255,127, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
660 {"chocolate1" , PALETTERGB (255,127, 36)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
661 {"sienna1" , PALETTERGB (255,130, 71)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
662 {"PaleVioletRed1" , PALETTERGB (255,130,171)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
663 {"orchid1" , PALETTERGB (255,131,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
664 {"Orange" , PALETTERGB (255,135, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
665 {"DarkOrange" , PALETTERGB (255,140, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
666 {"salmon1" , PALETTERGB (255,140,105)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
667 {"LightSalmon" , PALETTERGB (255,160,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
668 {"LightSalmon1" , PALETTERGB (255,160,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
669 {"orange1" , PALETTERGB (255,165, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
670 {"tan1" , PALETTERGB (255,165, 79)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
671 {"LightPink1" , PALETTERGB (255,174,185)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
672 {"Pink" , PALETTERGB (255,181,197)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
673 {"pink1" , PALETTERGB (255,181,197)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
674 {"LightPink" , PALETTERGB (255,182,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
675 {"DarkGoldenrod1" , PALETTERGB (255,185, 15)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
676 {"plum1" , PALETTERGB (255,187,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
677 {"goldenrod1" , PALETTERGB (255,193, 37)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
678 {"RosyBrown1" , PALETTERGB (255,193,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
679 {"burlywood1" , PALETTERGB (255,211,155)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
680 {"gold1" , PALETTERGB (255,215, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
681 {"PeachPuff" , PALETTERGB (255,218,185)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
682 {"PeachPuff1" , PALETTERGB (255,218,185)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
683 {"NavajoWhite" , PALETTERGB (255,222,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
684 {"NavajoWhite1" , PALETTERGB (255,222,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
685 {"thistle1" , PALETTERGB (255,225,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
686 {"moccasin" , PALETTERGB (255,228,181)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
687 {"bisque" , PALETTERGB (255,228,196)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
688 {"bisque1" , PALETTERGB (255,228,196)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
689 {"MistyRose" , PALETTERGB (255,228,225)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
690 {"MistyRose1" , PALETTERGB (255,228,225)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
691 {"wheat1" , PALETTERGB (255,231,186)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
692 {"BlanchedAlmond" , PALETTERGB (255,235,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
693 {"LightGoldenrod1" , PALETTERGB (255,236,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
694 {"PapayaWhip" , PALETTERGB (255,239,213)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
695 {"AntiqueWhite1" , PALETTERGB (255,239,219)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
696 {"LavenderBlush" , PALETTERGB (255,240,245)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
697 {"LavenderBlush1" , PALETTERGB (255,240,245)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
698 {"seashell" , PALETTERGB (255,245,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
699 {"seashell1" , PALETTERGB (255,245,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
700 {"khaki1" , PALETTERGB (255,246,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
701 {"cornsilk" , PALETTERGB (255,248,220)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
702 {"cornsilk1" , PALETTERGB (255,248,220)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
703 {"LemonChiffon" , PALETTERGB (255,250,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
704 {"LemonChiffon1" , PALETTERGB (255,250,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
705 {"FloralWhite" , PALETTERGB (255,250,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
706 {"snow" , PALETTERGB (255,250,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
707 {"snow1" , PALETTERGB (255,250,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
708 {"Yellow" , PALETTERGB (255,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
709 {"yellow1" , PALETTERGB (255,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
710 {"LightYellow" , PALETTERGB (255,255,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
711 {"LightYellow1" , PALETTERGB (255,255,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
712 {"ivory" , PALETTERGB (255,255,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
713 {"ivory1" , PALETTERGB (255,255,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
714 {"Gray100" , PALETTERGB (255,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
715 {"Grey100" , PALETTERGB (255,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
716 {"White" , PALETTERGB (255,255,255)}
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
717 };
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
718
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
719 static COLORREF
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
720 mswindows_string_to_color(CONST char *name)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
721 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
722 int color, i;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
723
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
724 if (*name == '#')
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
725 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
726 /* mswindows numeric names look like "#BBGGRR" */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
727 if (strlen(name)!=7)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
728 return (-1);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
729 for (i=1; i<7; i++)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
730 if (!isxdigit(name[i]))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
731 return(-1);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
732 if (sscanf(name+1, "%x", &color) == 1)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
733 return(0x02000000 | color); /* See PALETTERGB in docs */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
734 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
735 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
736 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
737 for(i=0; i<(sizeof(mswindows_X_color_map)/sizeof(colormap_t)); i++)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
738 if (!stricmp(name, mswindows_X_color_map[i].name))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
739 return (mswindows_X_color_map[i].colorref);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
740 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
741 return(-1);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
742 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
743
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
744 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
745 mswindows_initialize_color_instance (struct Lisp_Color_Instance *c, Lisp_Object name,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
746 Lisp_Object device, Error_behavior errb)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
747 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
748 CONST char *extname;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
749 COLORREF color;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
750
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
751 GET_C_STRING_CTEXT_DATA_ALLOCA (name, extname);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
752 color = mswindows_string_to_color(extname);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
753 if (color != -1)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
754 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
755 c->data = xnew (struct mswindows_color_instance_data);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
756 COLOR_INSTANCE_MSWINDOWS_COLOR (c) = color;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
757 COLOR_INSTANCE_MSWINDOWS_BRUSH (c) = CreateSolidBrush (color);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
758 return 1;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
759 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
760 maybe_signal_simple_error ("unrecognized color", name, Qcolor, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
761 return(0);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
762 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
763
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
764 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
765 mswindows_mark_color_instance (struct Lisp_Color_Instance *c,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
766 void (*markobj) (Lisp_Object))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
767 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
768 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
769
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
770 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
771 mswindows_print_color_instance (struct Lisp_Color_Instance *c,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
772 Lisp_Object printcharfun,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
773 int escapeflag)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
774 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
775 char buf[32];
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
776 COLORREF color = COLOR_INSTANCE_MSWINDOWS_COLOR (c);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
777 sprintf (buf, " %06ld=(%02X,%02X,%02X)", color & 0xffffff,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
778 GetRValue(color), GetGValue(color), GetBValue(color));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
779 write_c_string (buf, printcharfun);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
780 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
781
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
782 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
783 mswindows_finalize_color_instance (struct Lisp_Color_Instance *c)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
784 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
785 if (c->data)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
786 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
787 DeleteObject (COLOR_INSTANCE_MSWINDOWS_BRUSH (c));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
788 xfree (c->data);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
789 c->data = 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
790 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
791 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
792
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
793 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
794 mswindows_color_instance_equal (struct Lisp_Color_Instance *c1,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
795 struct Lisp_Color_Instance *c2,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
796 int depth)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
797 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
798 return (COLOR_INSTANCE_MSWINDOWS_COLOR(c1) == COLOR_INSTANCE_MSWINDOWS_COLOR(c2));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
799 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
800
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
801 static unsigned long
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
802 mswindows_color_instance_hash (struct Lisp_Color_Instance *c, int depth)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
803 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
804 return LISP_HASH (COLOR_INSTANCE_MSWINDOWS_COLOR(c));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
805 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
806
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
807 static Lisp_Object
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
808 mswindows_color_instance_rgb_components (struct Lisp_Color_Instance *c)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
809 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
810 COLORREF color = COLOR_INSTANCE_MSWINDOWS_COLOR (c);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
811 return (list3 (make_int (GetRValue(color)),
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
812 make_int (GetGValue(color)),
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
813 make_int (GetBValue(color))));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
814 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
815
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
816 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
817 mswindows_valid_color_name_p (struct device *d, Lisp_Object color)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
818 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
819 CONST char *extname;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
820
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
821 GET_C_STRING_CTEXT_DATA_ALLOCA (color, extname);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
822 return (mswindows_string_to_color(extname)!=-1);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
823 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
824
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
825
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
826
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
827 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
828 mswindows_finalize_font_instance (struct Lisp_Font_Instance *f)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
829 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
830 if (f->data)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
831 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
832 DeleteObject(f->data);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
833 f->data=0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
834 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
835 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
836
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
837 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
838 mswindows_initialize_font_instance (struct Lisp_Font_Instance *f, Lisp_Object name,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
839 Lisp_Object device, Error_behavior errb)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
840 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
841 CONST char *extname;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
842 LOGFONT logfont;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
843 int fields;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
844 int pt;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
845 char fontname[LF_FACESIZE], weight[32], *style, points[8], effects[32], charset[32];
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
846
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
847 GET_C_STRING_CTEXT_DATA_ALLOCA (f->name, extname);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
848
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
849 /*
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
850 * mswindows fonts look like:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
851 * fontname[:[weight ][style][:pointsize[:effects[:charset]]]]
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
852 * The font name field shouldn't be empty.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
853 * XXX Windows will substitute a default (monospace) font if the font name
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
854 * specifies a non-existent font. We don't catch this.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
855 * effects and charset are currently ignored.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
856 *
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
857 * ie:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
858 * Lucida Console:Regular:10
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
859 * minimal:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
860 * Courier New
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
861 * maximal:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
862 * Courier New:Bold Italic:10:underline strikeout:ansi
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
863 */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
864 fields = sscanf (extname, "%31[^:]:%31[^:]:%7[^:]:%31[^:]:%31s",
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
865 fontname, weight, points, effects, charset);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
866
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
867 if (fields<0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
868 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
869 maybe_signal_simple_error ("Invalid font", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
870 return (0);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
871 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
872
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
873 if (fields>0 && strlen(fontname))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
874 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
875 strncpy (logfont.lfFaceName, fontname, LF_FACESIZE);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
876 logfont.lfFaceName[LF_FACESIZE-1] = 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
877 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
878 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
879 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
880 maybe_signal_simple_error ("Must specify a font name", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
881 return (0);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
882 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
883
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
884 if (fields > 1 && strlen(weight))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
885 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
886 char *c;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
887 /* Maybe split weight into weight and style */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
888 if (c=strchr(weight, ' '))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
889 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
890 *c = '\0';
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
891 style = c+1;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
892 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
893 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
894 style = NULL;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
895
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
896 /* weight: Most-often used (maybe) first */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
897 if (stricmp (weight,"regular") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
898 logfont.lfWeight = FW_REGULAR;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
899 else if (stricmp (weight,"normal") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
900 logfont.lfWeight = FW_NORMAL;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
901 else if (stricmp (weight,"bold") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
902 logfont.lfWeight = FW_BOLD;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
903 else if (stricmp (weight,"medium") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
904 logfont.lfWeight = FW_MEDIUM;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
905 else if (stricmp (weight,"italic") == 0) /* Hack for early exit */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
906 {
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 213
diff changeset
907 logfont.lfItalic = TRUE;
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
908 style=weight;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
909 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
910 /* the rest */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
911 else if (stricmp (weight,"black") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
912 logfont.lfWeight = FW_BLACK;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
913 else if (stricmp (weight,"heavy") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
914 logfont.lfWeight = FW_HEAVY;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
915 else if (stricmp (weight,"ultrabold") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
916 logfont.lfWeight = FW_ULTRABOLD;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
917 else if (stricmp (weight,"extrabold") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
918 logfont.lfWeight = FW_EXTRABOLD;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
919 else if (stricmp (weight,"demibold") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
920 logfont.lfWeight = FW_SEMIBOLD;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
921 else if (stricmp (weight,"semibold") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
922 logfont.lfWeight = FW_SEMIBOLD;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
923 else if (stricmp (weight,"light") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
924 logfont.lfWeight = FW_LIGHT;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
925 else if (stricmp (weight,"ultralight") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
926 logfont.lfWeight = FW_ULTRALIGHT;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
927 else if (stricmp (weight,"extralight") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
928 logfont.lfWeight = FW_EXTRALIGHT;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
929 else if (stricmp (weight,"thin") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
930 logfont.lfWeight = FW_THIN;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
931 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
932 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
933 logfont.lfWeight = FW_NORMAL;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
934 if (!style)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
935 style = weight; /* May have specified a style without a weight */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
936 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
937 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
938 maybe_signal_simple_error ("Invalid font weight", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
939 return (0); /* Invalid weight */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
940 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
941 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
942
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
943 if (style)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
944 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
945 /* XXX what about oblique? */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
946 if (stricmp (style,"italic") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
947 logfont.lfItalic = TRUE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
948 else if (stricmp (style,"roman") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
949 logfont.lfItalic = FALSE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
950 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
951 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
952 maybe_signal_simple_error ("Invalid font weight or style", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
953 return (0); /* Invalid weight or style */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
954 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
955 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
956 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
957 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
958 logfont.lfItalic = FALSE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
959 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
960
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
961 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
962 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
963 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
964 logfont.lfWeight = FW_NORMAL;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
965 logfont.lfItalic = FALSE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
966 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
967
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
968 /* XXX Should we reject strings that don't specify a size? */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
969 if (fields < 3 || !strlen(points) || (pt=atoi(points))==0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
970 pt = 10;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
971
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
972 /* Formula for pointsize->height from LOGFONT docs in MSVC5 Platform SDK */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
973 logfont.lfHeight = -MulDiv(pt, DEVICE_MSWINDOWS_LOGPIXELSY(XDEVICE (device)), 72);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
974 logfont.lfWidth = 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
975
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
976 /* Default to monospaced if the specified font name is not found */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
977 logfont.lfPitchAndFamily = FF_MODERN;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
978
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
979 /* XXX: FIXME? */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
980 logfont.lfUnderline = FALSE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
981 logfont.lfStrikeOut = FALSE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
982
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
983 /* XXX: FIXME: we ignore charset */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
984 logfont.lfCharSet = DEFAULT_CHARSET;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
985
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
986 /* Misc crud */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
987 logfont.lfEscapement = logfont.lfOrientation = 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
988 #if 1
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
989 logfont.lfOutPrecision = OUT_DEFAULT_PRECIS;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
990 logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
991 logfont.lfQuality = DEFAULT_QUALITY;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
992 #else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
993 logfont.lfOutPrecision = OUT_STROKE_PRECIS;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
994 logfont.lfClipPrecision = CLIP_STROKE_PRECIS;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
995 logfont.lfQuality = PROOF_QUALITY;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
996 #endif
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
997
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
998 if ((f->data = CreateFontIndirect(&logfont)) == NULL)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
999 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1000 maybe_signal_simple_error ("Couldn't create font", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1001 return 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1002 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1003
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1004 /* Have to apply Font to a GC to get its values.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1005 * We'll borrow the desktop window becuase its the only window that we
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1006 * know about that is guaranteed to exist when this gets called
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1007 */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1008 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1009 HWND hwnd;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1010 HDC hdc;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1011 HFONT holdfont;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1012 TEXTMETRIC metrics;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1013
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1014 hwnd = GetDesktopWindow();
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1015 assert(hdc = GetDC(hwnd)); /* XXX FIXME: can this temporarily fail? */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1016 holdfont = SelectObject(hdc, f->data);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1017 if (!holdfont)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1018 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1019 mswindows_finalize_font_instance (f);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1020 maybe_signal_simple_error ("Couldn't map font", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1021 return 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1022 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1023 GetTextMetrics(hdc, &metrics);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1024 SelectObject(hdc, holdfont);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1025 ReleaseDC(hwnd, hdc);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1026 f->width = metrics.tmAveCharWidth;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1027 f->height = metrics.tmHeight;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1028 f->ascent = metrics.tmAscent;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1029 f->descent = metrics.tmDescent;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1030 f->proportional_p = (metrics.tmPitchAndFamily & TMPF_FIXED_PITCH);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1031 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1032
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1033 return 1;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1034 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1035
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1036 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1037 mswindows_mark_font_instance (struct Lisp_Font_Instance *f,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1038 void (*markobj) (Lisp_Object))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1039 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1040 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1041
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1042 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1043 mswindows_print_font_instance (struct Lisp_Font_Instance *f,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1044 Lisp_Object printcharfun,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1045 int escapeflag)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1046 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1047 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1048
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1049 static Lisp_Object
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1050 mswindows_list_fonts (Lisp_Object pattern, Lisp_Object device)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1051 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1052 /* XXX Implement me */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1053 return list1 (build_string ("Courier New:Regular:10"));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1054 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1055
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1056
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1057
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1058 /************************************************************************/
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1059 /* initialization */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1060 /************************************************************************/
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1061
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1062 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1063 syms_of_objects_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1064 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1065 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1066
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1067 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1068 console_type_create_objects_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1069 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1070 /* object methods */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1071 CONSOLE_HAS_METHOD (mswindows, initialize_color_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1072 /* CONSOLE_HAS_METHOD (mswindows, mark_color_instance); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1073 CONSOLE_HAS_METHOD (mswindows, print_color_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1074 CONSOLE_HAS_METHOD (mswindows, finalize_color_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1075 CONSOLE_HAS_METHOD (mswindows, color_instance_equal);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1076 CONSOLE_HAS_METHOD (mswindows, color_instance_hash);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1077 CONSOLE_HAS_METHOD (mswindows, color_instance_rgb_components);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1078 CONSOLE_HAS_METHOD (mswindows, valid_color_name_p);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1079
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1080 CONSOLE_HAS_METHOD (mswindows, initialize_font_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1081 /* CONSOLE_HAS_METHOD (mswindows, mark_font_instance); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1082 CONSOLE_HAS_METHOD (mswindows, print_font_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1083 CONSOLE_HAS_METHOD (mswindows, finalize_font_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1084 /* CONSOLE_HAS_METHOD (mswindows, font_instance_truename); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1085 CONSOLE_HAS_METHOD (mswindows, list_fonts);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1086 #ifdef MULE
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1087 CONSOLE_HAS_METHOD (mswindows, font_spec_matches_charset);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1088 CONSOLE_HAS_METHOD (mswindows, find_charset_font);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1089 #endif
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1090 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1091
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1092 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1093 vars_of_objects_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1094 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1095 }