Set Xft defaults if no XSETTING is found, better default for Gtk+ font dialog.
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 23 Nov 2009 08:55:08 +0000 (08:55 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 23 Nov 2009 08:55:08 +0000 (08:55 +0000)
commit581e51e8918b3ba9b58e67768a1de39ce5f1cbd3
treeb210e82974c9e4ab1d3cc1c0a9e86348a425526b
parent0f202d5d8fa1f0dea9c1e5e52e6ad66e4848aa75
Set Xft defaults if no XSETTING is found, better default for Gtk+ font dialog.

* xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
because that is what Gtk+ font dialog understands.

* font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
of Fcopy_sequence.
(font_open_by_name): Put name given into QCname for font-object returned.

* frame.c (x_set_font): Save original font name as frame parameter
font-parameter.

* xsettings.c (set_default_xft_settings): New function.
(init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
is found.
src/ChangeLog
src/font.c
src/frame.c
src/xfns.c
src/xsettings.c