1 /* Functions for handle font changes dynamically.
2
3 Copyright (C) 2009-2023 Free Software Foundation, Inc.
4
5 This file is part of GNU Emacs.
6
7 GNU Emacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or (at
10 your option) any later version.
11
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
19
20 #ifndef XSETTINGS_H
21 #define XSETTINGS_H
22
23 #ifndef HAVE_PGTK
24 #include "dispextern.h"
25 #include <X11/Xlib.h>
26 #else
27 #include <cairo.h>
28 #endif
29
30 struct x_display_info;
31 struct pgtk_display_info;
32
33 #ifdef HAVE_PGTK
34 typedef struct pgtk_display_info Display_Info;
35 #endif
36
37 extern void xsettings_initialize (Display_Info *);
38 #ifndef HAVE_PGTK
39 extern bool xft_settings_event (Display_Info *, const XEvent *);
40 #endif
41 extern const char *xsettings_get_system_font (void);
42 #ifdef USE_LUCID
43 extern const char *xsettings_get_system_normal_font (void);
44 #endif
45
46 #ifdef HAVE_PGTK
47 extern cairo_font_options_t *xsettings_get_font_options (void);
48 #endif
49
50 #endif /* XSETTINGS_H */