Jan Djärv <address@hidden> writes:
Tobias C. Rittweiler skrev:
Jan Djärv <address@hidden> writes:
Chong Yidong skrev:
Jan Djärv <address@hidden> writes:
I have completed the GConf/Xsetting code (after way to long time) now
and would like to check it in. I don't know if it counts as a major
change, but its implications might.
Basically Emacs reads the system font name from GConf and uses that.
It also reacts to changes to the system font (can be turned off with a
defcustom). GConf support can be turned off in configure.
I'm not sure if there's enough time to test this. Font-related changes
seem pretty tricky to get right. What about checking this in but
disabling the configure option by default, and enabling it after Emacs
23.2?
I've done so. But IMHO a couple of monthe pre-test is time enough to test it.
I'm interested in the change. How can I test it?
Make sure you have gconf development libraries installed
(libgconf(2)-dev(el) or similar package).
Run configure. Set font-use-system-font to t (it is in the menu Options also).
Use Gnome settings to change the monospaced font.
Also try to change dpi, hinting style and so on (this should work on
KDE also). Emacs frames should be updated at once.
Trying to compile with
./configure --prefix=... --with-x-toolkit=gtk --with-xpm=n
results in the following build error:
gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -I.
-I/home/tcr/src/from-upstream/emacs/src -D_BSD_SOURCE -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -Wno-pointer-sign
-MMD -MF deps/xsettings.d xsettings.c
xsettings.c: In function ‘parse_xft_settings’:
xsettings.c:318: error: ‘FC_LCD_NONE’ undeclared (first use in this function)
xsettings.c:318: error: (Each undeclared identifier is reported only once
xsettings.c:318: error: for each function it appears in.)
xsettings.c:320: error: ‘FC_LCD_DEFAULT’ undeclared (first use in this
function)
make[1]: *** [xsettings.o] Error 1
make[1]: Leaving directory `/src/tcr/from-upstream/emacs/src'
make: *** [src] Error 2