Hello Ben,
Thanks you for yours patches and your cares to improve fbi / fbgs. If
you have other suggestions, please feel free to contact me directly.
I propose another patch with an option --(no)antialias which is more in
the style of the author. For the shortcut -A, I do not know if it also
pleases. If it suits you, I submit with proper documentation.
As regards the "-c" option, it should be treated separately.
Regards,
--
Stéphane Aulery
diff --git a/fbgs b/fbgs
index 3b996b5..199f657 100755
--- a/fbgs
+++ b/fbgs
@@ -14,6 +14,7 @@ trap "rm -rf $DIR" EXIT
# parse options
fbiopts=""
gsopts=""
+gsantialias="-dTextAlphaBits=4 -dGraphicsAlphaBits=4"
passwd=""
device="png16m"
opt=1
@@ -30,6 +31,7 @@ usage: fbgs [fbgs options] [fbi options] file
-fp --firstpage <arg> begins on the <arg> page
-lp --lastpage <arg> stops on the <arg> page
-c --(no)color pages in color
+ -A --(no)antialias pages rendered with antialias
-l pages rendered with 100 dpi
-xl pages rendered with 120 dpi
-xxl pages rendered with 150 dpi
@@ -41,6 +43,14 @@ Read the fbgs(1) and fbi(1) manpages for more details.
while test "$opt" = "1"; do
case "$1" in
# fbgs options
+ -A | --antialias)
+ # Enabled by default, do nothing more
+ shift
+ ;;
+ --noantialias)
+ gsantialias=""
+ shift
+ ;;
-b | --bell)
bell="on"
shift
@@ -121,6 +131,7 @@ echo
gs -dSAFER -dNOPAUSE -dBATCH \
-sPDFPassword="$password" \
-sDEVICE=${device} -sOutputFile=$DIR/ps%03d.tiff \
+ $gsantialias \
$gsopts \
"$1"