Commit 3c53c167 authored by Sophie Herold's avatar Sophie Herold
Browse files

gtk: Turn on font hinting

Reduced the effect of GNOME/gtk#3833 on fonts
parent 1b40b2e8
Pipeline #382410 passed with stages
in 11 minutes and 13 seconds
...@@ -41,17 +41,6 @@ use config::ArcSwapWriteable; ...@@ -41,17 +41,6 @@ use config::ArcSwapWriteable;
use config::TrackChanges; use config::TrackChanges;
pub fn main() { pub fn main() {
// suppress "gdk_pixbuf_from_pixdata()" debug spam
/*
glib::log_set_handler(
Some("GdkPixbuf"),
glib::LogLevels::LEVEL_DEBUG,
false,
false,
|_, _, _| {},
);
*/
crate::utils::init_gettext(); crate::utils::init_gettext();
gtk_app().connect_startup(on_startup); gtk_app().connect_startup(on_startup);
...@@ -111,6 +100,11 @@ fn on_startup(_app: &gtk::Application) { ...@@ -111,6 +100,11 @@ fn on_startup(_app: &gtk::Application) {
); );
} }
// Workaround for https://gitlab.gnome.org/GNOME/gtk/-/issues/3833
if let Some(settings) = gtk::Settings::default() {
settings.set_property("gtk-hint-font-metrics", true);
}
init_actions(); init_actions();
ui::dbus::init(); ui::dbus::init();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment