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

Add giflossy
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 13 23:27:32 2018 +0100 (2018-03-13)
parents 66feb7f9e198
children
line source
1 #!/bin/sh
2 # Simple style chooser for fontconfig-infinality
3 #
4 # Copyright (C) 2013-2015 SliTaz GNU/linux - GNU GPL v3
5 # - Aleksej Bobylev <al.bobylev@gmail.com>
6 # - Zann <e-zann@gmx.net>
7 #
9 # Determine current style
10 inf_path=$(realpath /etc/fonts/infinality/conf.d)
11 case $(basename $inf_path) in
12 infinality) inf_style="Infinality";;
13 linux) inf_style="Linux";;
14 osx) inf_style="OSX";;
15 osx2) inf_style="OSX2";;
16 win7) inf_style="Windows 7";;
17 win98) inf_style="Windows 98" ;;
18 winxp) inf_style="Windows XP";;
19 esac
22 inf_main() {
23 yad --entry \
24 --title="Fontconfig-infinality" \
25 --window-icon=/usr/share/pixmaps/infinality.png \
26 --text="Current style is <b>$inf_style</b>. Choose another:" \
27 --center --on-top --entry-text \
28 "Infinality - subpixel AA, minimal replacements/tweaks, sans=Arial" \
29 "Windows 7 - subpixel AA, sans=Arial" \
30 "Windows XP - subpixel AA, sans=Arial" \
31 "Windows 98 - B/W full hinting on TT fonts, grayscale AA for others, sans=Arial" \
32 "OSX - Slight hinting, subpixel AA, sans=Helvetica Neue" \
33 "OSX2 - No hinting, subpixel AA, sans=Helvetica Neue" \
34 "Linux - subpixel AA, sans=DejaVu Sans"
35 }
37 main=$(inf_main)
38 # Deal with --button values
39 case $? in
40 1) exit 0 ;;
41 *) continue ;;
42 esac
44 case "$main" in
45 Infinality*) infctl.sh setstyle infinality ;;
46 Windows\ 7*) infctl.sh setstyle win7 ;;
47 Windows\ XP*) infctl.sh setstyle winxp ;;
48 Windows\ 98*) infctl.sh setstyle win98 ;;
49 OSX\ *) infctl.sh setstyle osx ;;
50 OSX2*) infctl.sh setstyle osx2 ;;
51 Linux*) infctl.sh setstyle linux ;;
52 esac