wok diff fontconfig-infinality-yad/stuff/infctl-yad @ rev 16222
ARM add librsvg
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Mar 31 23:37:15 2014 +0200 (2014-03-31) |
parents | |
children | 7bffd5bfb8b4 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/fontconfig-infinality-yad/stuff/infctl-yad Mon Mar 31 23:37:15 2014 +0200 1.3 @@ -0,0 +1,38 @@ 1.4 +#!/bin/sh 1.5 +# Simple style chooser for fontconfig-infinality 1.6 +# 1.7 +# Copyright (C) 2013 SliTaz GNU/linux - GNU GPL v3 1.8 +# - Aleksej Bobylev <al.bobylev@gmail.com> 1.9 +# 1.10 + 1.11 +inf_main() { 1.12 + yad --entry \ 1.13 + --title="Fontconfig-infinality" \ 1.14 + --window-icon=/usr/share/pixmaps/infinality.png \ 1.15 + --text="Choose the style:" \ 1.16 + --center --on-top --entry-text \ 1.17 + "Infinality - subpixel AA, minimal replacements/tweaks, sans=Arial" \ 1.18 + "Windows 7 - subpixel AA, sans=Arial" \ 1.19 + "Windows XP - subpixel AA, sans=Arial" \ 1.20 + "Windows 98 - B/W full hinting on TT fonts, grayscale AA for others, sans=Arial" \ 1.21 + "OSX - Slight hinting, subpixel AA, sans=Helvetica Neue" \ 1.22 + "OSX2 - No hinting, subpixel AA, sans=Helvetica Neue" \ 1.23 + "Linux - subpixel AA, sans=DejaVu Sans" 1.24 +} 1.25 + 1.26 +main=$(inf_main) 1.27 +# Deal with --button values 1.28 +case $? in 1.29 + 1) exit 0 ;; 1.30 + *) continue ;; 1.31 +esac 1.32 + 1.33 +case "$main" in 1.34 + Infinality*) infctl.sh setstyle infinality ;; 1.35 + Windows\ 7*) infctl.sh setstyle win7 ;; 1.36 + Windows\ XP*) infctl.sh setstyle winxp ;; 1.37 + Windows\ 98*) infctl.sh setstyle win98 ;; 1.38 + OSX\ *) infctl.sh setstyle osx ;; 1.39 + OSX2*) infctl.sh setstyle osx2 ;; 1.40 + Linux*) infctl.sh setstyle linux ;; 1.41 +esac