]> git.eshelyaron.com Git - emacs.git/commit
Fix recent Cairo xsettings changes
authorPo Lu <luangruo@yahoo.com>
Tue, 15 Nov 2022 11:07:44 +0000 (19:07 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 15 Nov 2022 11:48:39 +0000 (19:48 +0800)
commit833e60ae1a5dd4301eb556460285414f4fea9fec
tree9a5288bc252262a470596480f8c3cc49baa6ee13
parent0ac626f1d4eba84bd988a16991178ff25a07ece5
Fix recent Cairo xsettings changes

* lisp/dynamic-setting.el (font-setting-change-default-font):
Instead of setting the font frame parameter, just clear the font
and face cache and redraw the display.  This will re-open all
fonts as well.
* src/ftcrfont.c (ftcrfont_get_default_font_options): New
function.
* src/ftfont.h: Export.
* src/xsettings.c (apply_xft_settings): Call that function to
obtain the default font settings on Cairo.  (bug#58912,
bug#59283, bug#59271)
lisp/dynamic-setting.el
src/ftcrfont.c
src/ftfont.h
src/xsettings.c