lib/Tools/installfonts
changeset 2578 cc768a16ef65
parent 2335 e965156e84e3
child 2746 2a2d51f2cd95
equal deleted inserted replaced
2577:eec6bdf53809 2578:cc768a16ef65
    17   echo
    17   echo
    18   exit 1
    18   exit 1
    19 }
    19 }
    20 
    20 
    21 
    21 
       
    22 ## check for isabelle fonts
       
    23 
       
    24 function checkfonts()
       
    25 {
       
    26   RESULT=$(xlsfonts -fn "-isabelle-*" 2>&1) || return 1
       
    27 
       
    28   case "$RESULT" in
       
    29     xlsfonts:*)
       
    30       return 1
       
    31       ;;
       
    32   esac
       
    33 
       
    34   return 0
       
    35 }
       
    36 
       
    37 
    22 ## main
    38 ## main
    23 
    39 
    24 [ $# -ne 0 ] && usage
    40 [ $# -ne 0 ] && usage
    25 
    41 
    26 
    42 checkfonts || eval $ISABELLE_INSTALLFONTS
    27 RESULT=$(xlsfonts -fn "-isabelle-*" 2>&1) || exit 1
    43 checkfonts || echo "WARNING: Isabelle fonts probably not installed correctly!" >&2
    28 
       
    29 case "$RESULT" in
       
    30   xlsfonts:*)
       
    31     xset fp+ $ISABELLE_HOME/lib/fonts
       
    32     xset fp rehash
       
    33     ;;
       
    34 esac