wok-next
annotate fontconfig-infinality-yad/stuff/infctl-yad @ rev 16248
ARM add: aspell, enchant, gtkspell, geany, leafpad, alaplayer
author |
Christophe Lincoln <pankso@slitaz.org> |
date |
Thu Apr 03 22:56:54 2014 +0200 (2014-04-03) |
parents |
|
children |
7bffd5bfb8b4 |
rev |
line source |
al@14225
|
1 #!/bin/sh
|
al@14225
|
2 # Simple style chooser for fontconfig-infinality
|
al@14225
|
3 #
|
al@14225
|
4 # Copyright (C) 2013 SliTaz GNU/linux - GNU GPL v3
|
al@14225
|
5 # - Aleksej Bobylev <al.bobylev@gmail.com>
|
al@14225
|
6 #
|
al@14225
|
7
|
al@14225
|
8 inf_main() {
|
al@14225
|
9 yad --entry \
|
al@14225
|
10 --title="Fontconfig-infinality" \
|
al@14225
|
11 --window-icon=/usr/share/pixmaps/infinality.png \
|
al@14225
|
12 --text="Choose the style:" \
|
al@14225
|
13 --center --on-top --entry-text \
|
al@14225
|
14 "Infinality - subpixel AA, minimal replacements/tweaks, sans=Arial" \
|
al@14225
|
15 "Windows 7 - subpixel AA, sans=Arial" \
|
al@14225
|
16 "Windows XP - subpixel AA, sans=Arial" \
|
al@14225
|
17 "Windows 98 - B/W full hinting on TT fonts, grayscale AA for others, sans=Arial" \
|
al@14225
|
18 "OSX - Slight hinting, subpixel AA, sans=Helvetica Neue" \
|
al@14225
|
19 "OSX2 - No hinting, subpixel AA, sans=Helvetica Neue" \
|
al@14225
|
20 "Linux - subpixel AA, sans=DejaVu Sans"
|
al@14225
|
21 }
|
al@14225
|
22
|
al@14225
|
23 main=$(inf_main)
|
al@14225
|
24 # Deal with --button values
|
al@14225
|
25 case $? in
|
al@14225
|
26 1) exit 0 ;;
|
al@14225
|
27 *) continue ;;
|
al@14225
|
28 esac
|
al@14225
|
29
|
al@14225
|
30 case "$main" in
|
al@14225
|
31 Infinality*) infctl.sh setstyle infinality ;;
|
al@14225
|
32 Windows\ 7*) infctl.sh setstyle win7 ;;
|
al@14225
|
33 Windows\ XP*) infctl.sh setstyle winxp ;;
|
al@14225
|
34 Windows\ 98*) infctl.sh setstyle win98 ;;
|
al@14225
|
35 OSX\ *) infctl.sh setstyle osx ;;
|
al@14225
|
36 OSX2*) infctl.sh setstyle osx2 ;;
|
al@14225
|
37 Linux*) infctl.sh setstyle linux ;;
|
al@14225
|
38 esac
|