]> git.pld-linux.org Git - packages/fontpostinst.git/commitdiff
- t1lib support
authorArtur Frysiak <artur@frysiak.net>
Fri, 20 Jun 2003 17:40:48 +0000 (17:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fontpostinst -> 1.7

fontpostinst

index 6758911752bdfadaf48f2068a3d4b61fd409a9c9..54e662e8edfa1b4199886278a4366771823d4a6c 100644 (file)
@@ -7,6 +7,7 @@
 #      mkfontdir, mkfontscale (XFree86)  (or ttmkfdir - for TTF only)
 #      fc-cache (fontconfig or XFree86-fontconfig)
 #      gnome-font-install (gnome-print)
+#      t1libconfig (t1lib)
 
 FBASEDIR="/usr/share/fonts"
 
@@ -17,7 +18,7 @@ MKFONTSCALE="$MKFONTSCALEBIN"
 
 MKTTFFONTSCALEBIN="$MKFONTSCALEBIN"
 MKTTFFONTSCALE="$MKTTFFONTSCALEBIN"
-if [ ! -x "$MKFONTSCALEBIN" -a -f /usr/bin/ttmkfdir ]; then
+if [ ! -x "$MKFONTSCALEBIN" -a -x /usr/bin/ttmkfdir ]; then
        # fallback for X <= 4.2.x
        MKTTFFONTSCALEBIN="/usr/bin/ttmkfdir"
        MKTTFFONTSCALE="$MKFONTSCALEBIN -e /usr/share/fonts/encodings/encodings.dir"
@@ -41,6 +42,9 @@ if [ ! -x $GNOMEFONTINSTBIN -a -x /usr/X11R6/bin/gnome-font-install ]; then
 fi
 GNOMEFONTINST="$GNOMEFONTINSTBIN --target $FBASEDIR/fontmap"
 
+T1LIBCONFIGBIN="/usr/bin/t1libconfig"
+T1LIBCONFIG="$T1LIBCONFIGBIN --force"
+
 if [ -z "$1" ]; then
        echo "Usage: fontpostinst TYPE [DIR]"
        echo "  TYPE is one of:"
@@ -104,6 +108,9 @@ case "$FTYPE" in
        if [ -x $GNOMEFONTINSTBIN ]; then
                $GNOMEFONTINST
        fi
+       if [ -x $T1LIBCONFIGBIN ]; then
+               $T1LIBCONFIG
+       fi
        ;;
     CID|Speedo)
        if [ "`echo fonts.scale.*`" != 'fonts.scale.*' ]; then
This page took 0.094623 seconds and 4 git commands to generate.