/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_group_font.py is in gnome-tweak-tool 3.18.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # This file is part of gnome-tweak-tool.
#
# Copyright (c) 2011 John Stowers
#
# gnome-tweak-tool is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# gnome-tweak-tool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with gnome-tweak-tool. If not, see <http://www.gnu.org/licenses/>.
from gi.repository import Gtk
from gtweak.tweakmodel import TWEAK_GROUP_FONTS
from gtweak.widgets import ListBoxTweakGroup, GSettingsSpinButtonTweak, GSettingsFontButtonTweak, GSettingsComboTweak
TWEAK_GROUPS = [
ListBoxTweakGroup(TWEAK_GROUP_FONTS,
GSettingsFontButtonTweak(_("Window Titles"),"org.gnome.desktop.wm.preferences", "titlebar-font"),
GSettingsFontButtonTweak(_("Interface"),"org.gnome.desktop.interface", "font-name"),
GSettingsFontButtonTweak(_("Documents"), "org.gnome.desktop.interface", "document-font-name"),
GSettingsFontButtonTweak(_("Monospace"), "org.gnome.desktop.interface", "monospace-font-name"),
GSettingsComboTweak(_("Hinting"),"org.gnome.settings-daemon.plugins.xsettings", "hinting",
[(i, i.title()) for i in ("none", "slight", "medium", "full")]),
GSettingsComboTweak(_("Antialiasing"),"org.gnome.settings-daemon.plugins.xsettings", "antialiasing",
[(i, i.title()) for i in ("none", "grayscale", "rgba")]),
GSettingsSpinButtonTweak(_("Scaling Factor"),
"org.gnome.desktop.interface", "text-scaling-factor",
adjustment_step=0.01, digits=2),
)
]
|