wok view fontconfig-infinality-yad/stuff/infctl-yad @ rev 14225
freetype*: up 2.4.11; fontconfig*: up 2.10.91; add freetype-infinality* and fontconfig-infinality; gobject-introspection: up 1.32.1; gtk+3*: up 3.4.4; add gtk3-engine-solidity, gtk3-engine-unico; pixman*: up 0.28.2; add libxklavier, lightdm*; slitaz-i18n: add all existing translations.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Mar 21 16:18:40 2013 +0000 (2013-03-21) |
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