diff options
| author | Pieter van Prooijen | 2022-05-08 16:27:38 +0200 |
|---|---|---|
| committer | Po Lu | 2022-05-13 20:52:02 +0800 |
| commit | 526e9758de7d163ce3b25fde69a4e122ce9c3742 (patch) | |
| tree | 94ef87a41be88f91f76bdeaae27e5cf8eed9c26d /src/buffer.c | |
| parent | 784a3bde24be0637646ad0bf22f695c84b8e3e05 (diff) | |
| download | emacs-526e9758de7d163ce3b25fde69a4e122ce9c3742.tar.gz emacs-526e9758de7d163ce3b25fde69a4e122ce9c3742.zip | |
Use gsettings font rendering entries for pgtk builds
If present, apply the gsettings font hinting and antialiasing
entries when creating a font in cairo. Do this at
initialization and when the entries change, re-rendering the
frames.
* src/ftcrfont.c (ftcrfont_open): Use the font_options derived
from gsettings when opening a font.
(ftcrfont_cached_font_ok): Report a cached font as invalid if
its font options differ from the current options inside
gsettings.
* src/xsettings.c (apply_gsettings_font_hinting)
(apply_gsettings_font_alias, apply_gsettings_font_rgba_order):
Convert the settings from GSettings to the cairo_font_options_t
object.
(init_gsettings, something_changed_gsettingsCB): Invoke the
apply functions if the relevant settings changed.
(store_font_options_changed): Store an event to re-render the
fonts.
(xsetting_get_font_options)
* src/xsettings.h (xsettings_get_font_options): New function.
Diffstat (limited to 'src/buffer.c')
0 files changed, 0 insertions, 0 deletions