wok view fontconfig-infinality-yad/stuff/infctl-yad @ rev 17595

Up: glib 2.43.3
author Alexander Medvedev <devl547@gmail.com>
date Tue Feb 10 20:09:44 2015 +0000 (2015-02-10)
parents
children 7bffd5bfb8b4
line source
1 #!/bin/sh
2 # Simple style chooser for fontconfig-infinality
3 #
4 # Copyright (C) 2013 SliTaz GNU/linux - GNU GPL v3
5 # - Aleksej Bobylev <al.bobylev@gmail.com>
6 #
8 inf_main() {
9 yad --entry \
10 --title="Fontconfig-infinality" \
11 --window-icon=/usr/share/pixmaps/infinality.png \
12 --text="Choose the style:" \
13 --center --on-top --entry-text \
14 "Infinality - subpixel AA, minimal replacements/tweaks, sans=Arial" \
15 "Windows 7 - subpixel AA, sans=Arial" \
16 "Windows XP - subpixel AA, sans=Arial" \
17 "Windows 98 - B/W full hinting on TT fonts, grayscale AA for others, sans=Arial" \
18 "OSX - Slight hinting, subpixel AA, sans=Helvetica Neue" \
19 "OSX2 - No hinting, subpixel AA, sans=Helvetica Neue" \
20 "Linux - subpixel AA, sans=DejaVu Sans"
21 }
23 main=$(inf_main)
24 # Deal with --button values
25 case $? in
26 1) exit 0 ;;
27 *) continue ;;
28 esac
30 case "$main" in
31 Infinality*) infctl.sh setstyle infinality ;;
32 Windows\ 7*) infctl.sh setstyle win7 ;;
33 Windows\ XP*) infctl.sh setstyle winxp ;;
34 Windows\ 98*) infctl.sh setstyle win98 ;;
35 OSX\ *) infctl.sh setstyle osx ;;
36 OSX2*) infctl.sh setstyle osx2 ;;
37 Linux*) infctl.sh setstyle linux ;;
38 esac