annotate etc/images/connect.xpm @ 106085:cd4cbab8bb21

Handle system default font and changing font parameters. * xterm.h (struct x_display_info): Add atoms and Window for xsettings. * xterm.c (handle_one_xevent): Call xft_settings_event for ClientMessage, PropertyNotify and DestroyNotify. (x_term_init): If we have XFT, get DPI from Xft.dpi. Call xsettings_initialize. * xftfont.c (xftfont_fix_match): New function. (xftfont_open): Call XftDefaultSubstitute before XftFontMatch. Call xftfont_fix_match after XftFontMatch. * xfont.c (xfont_driver): Initialize all members. * xfns.c (x_default_font_parameter): Try font from Ffont_get_system_font. Do not get font from x_default_parameter if we got one from Ffont_get_system_font. (Fx_select_font): Get the defaut font name from :name of FRAME_FONT (f). * w32font.c (w32font_driver): Initialize all members. * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new. * lisp.h: Declare syms_of_xsettings. * keyboard.c (kbd_buffer_get_event, make_lispy_event): Handle CONFIG_CHANGED_EVENT. * ftfont.c (ftfont_filter_properties): New function. * frame.c (x_set_font): Remove unused variable lval. * font.h (struct font_driver): filter_properties is new. * font.c (font_put_extra): Don't return if val is nil, it means boolean option is off. (font_parse_fcname): Collect all extra properties in extra_props and call filter_properties for all drivers with extra_props and font as parameter. (font_open_entity): Do not use cache, it does not pick up new fontconfig settings like hinting. (font_load_for_lface): If spec had a name in it, store it in entity. * emacs.c (main): Call syms_of_xsettings * config.in: HAVE_GCONF is new. * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF. xsettings.o is new. * menu-bar.el: Put "Use system font" in Option-menu. * loadup.el: If feature system-font-setting or font-render-setting is there, load font-setting. * Makefile.in (ELCFILES): font-settings.el is new. * font-setting.el: New file. * NEWS: Mention dynamic font changes (font-use-system-font). * configure.in: New option: --with(out)-gconf. Set HAVE_GCONF if we find gconf.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 17 Nov 2009 08:21:23 +0000
parents ed7704221f2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
69424
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
1 /* XPM */
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
2 static char * stock_connect_xpm[] = {
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
3 "24 24 58 1",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
4 " c None",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
5 ". c #000000",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
6 "+ c #989389",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
7 "@ c #807D74",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
8 "# c #C6C2BA",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
9 "$ c #34332D",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
10 "% c #B7B3AA",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
11 "& c #C4C2BD",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
12 "* c #EAE8E3",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
13 "= c #9C978D",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
14 "- c #BCB9B2",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
15 "; c #363433",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
16 "> c #E2E1DD",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
17 ", c #F0EFEC",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
18 "' c #AAA7A0",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
19 ") c #F0EEEB",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
20 "! c #B2B0AB",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
21 "~ c #F9F9F8",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
22 "{ c #C5C3BD",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
23 "] c #0F0F0D",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
24 "^ c #F2F0ED",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
25 "/ c #EBEAE6",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
26 "( c #8A857B",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
27 "_ c #ECEBE8",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
28 ": c #EEECEA",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
29 "< c #9F9C93",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
30 "[ c #F3F2F0",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
31 "} c #E8E7E4",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
32 "| c #E3E1DD",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
33 "1 c #78756B",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
34 "2 c #BEBBB5",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
35 "3 c #B3B1AA",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
36 "4 c #7D786E",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
37 "5 c #E1DFDB",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
38 "6 c #D1D0CC",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
39 "7 c #938E84",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
40 "8 c #C8C5BF",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
41 "9 c #A7A298",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
42 "0 c #010101",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
43 "a c #8C8981",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
44 "b c #A6A29B",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
45 "c c #726D63",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
46 "d c #CECAC3",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
47 "e c #A7A49E",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
48 "f c #7E7A70",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
49 "g c #A09D94",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
50 "h c #817D73",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
51 "i c #6C685E",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
52 "j c #3C3933",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
53 "k c #8B877E",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
54 "l c #706C62",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
55 "m c #B1ADA4",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
56 "n c #97938A",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
57 "o c #625E54",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
58 "p c #6A655B",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
59 "q c #37342D",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
60 "r c #646056",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
61 "s c #8B877D",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
62 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
63 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
64 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
65 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
66 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
67 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
68 " .. .. ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
69 " ..+@.#@.. ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
70 " $%&*@.*@=-; ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
71 " .>,'*@.)@!~{] ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
72 "......@>,'*@.)@!~{@.....",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
73 "*******^/(_@.:@<[}|*****",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
74 "@@@@@1123451.6@789@@@@@@",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
75 ".....01abcd1.e@fghi.....",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
76 " ]abcd1.e@fgh] ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
77 " ]jklmi.n@opq. ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
78 " ]]+r.s@.. ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
79 " ]] ]. ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
80 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
81 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
82 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
83 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
84 " ",
ed7704221f2b Revision: emacs@sv.gnu.org/emacs--devo--0--patch-151
Miles Bader <miles@gnu.org>
parents:
diff changeset
85 " "};