[gnome-tweak-tool] [tweak] support font hinting



commit a55b05721ad6efe15e676da3c6615335321266d3
Author: John Stowers <john stowers gmail com>
Date:   Thu Mar 24 16:45:21 2011 +1300

     [tweak] support font hinting

 NEWS                        |    1 +
 gtweak/tweaks/tweak_font.py |    6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index f7fb56f..b9c06dc 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 2.91.XX
     * Add license (GPL3)
     * Tweak shell clock to show date
+    * Tweak font hinting
 
 2.91.92
     * Initial Release
diff --git a/gtweak/tweaks/tweak_font.py b/gtweak/tweaks/tweak_font.py
index 8c872c4..325b919 100644
--- a/gtweak/tweaks/tweak_font.py
+++ b/gtweak/tweaks/tweak_font.py
@@ -1,7 +1,7 @@
 from gi.repository import Gtk
 
 from gtweak.tweakmodel import Tweak, TweakGroup
-from gtweak.widgets import GSettingsRangeTweak, GSettingsFontButtonTweak, GConfFontButtonTweak, build_horizontal_sizegroup
+from gtweak.widgets import GSettingsRangeTweak, GSettingsFontButtonTweak, GConfFontButtonTweak, GSettingsComboTweak, build_horizontal_sizegroup
 
 sg = build_horizontal_sizegroup()
 
@@ -12,5 +12,7 @@ TWEAK_GROUPS = (
             GSettingsFontButtonTweak("org.gnome.desktop.interface", "font-name", size_group=sg),
             GSettingsFontButtonTweak("org.gnome.desktop.interface", "document-font-name", size_group=sg),
             GSettingsFontButtonTweak("org.gnome.desktop.interface", "monospace-font-name", size_group=sg),
-            GConfFontButtonTweak("/apps/metacity/general/titlebar_font", str, size_group=sg)),
+            GConfFontButtonTweak("/apps/metacity/general/titlebar_font", str, size_group=sg),
+            GSettingsComboTweak("org.gnome.settings-daemon.plugins.xsettings", "hinting",
+                [(i, i.title()) for i in ("none", "slight", "medium", "full")], size_group=sg)),
 )



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]