aboutsummaryrefslogtreecommitdiff
path: root/system/gohu-font/doinst.sh
blob: c014f1310f2d50380bb9bc9d2b791b0b1f7c4570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if [ -x /usr/bin/mkfontdir ]; then
  ( cd usr/share/fonts/misc
    if ! grep -q '^gohu1[14]\(bold\|\) ' fonts.alias 2>/dev/null; then
      echo 'gohu11 -gohu-gohufont-medium-r-normal--11-80-100-100-c-60-iso10646-1' >> fonts.alias
      echo 'gohu11bold -gohu-gohufont-bold-r-normal--11-80-100-100-c-60-iso10646-1' >> fonts.alias
      echo 'gohu14 -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1' >> fonts.alias
      echo 'gohu14bold -gohu-gohufont-bold-r-normal--14-100-100-100-c-80-iso10646-1' >> fonts.alias
    fi
    mkfontscale .
    mkfontdir .
  )
fi

[ "$DISPLAY" != "" ] && xset fp rehash 2>/dev/null

if [ -x usr/bin/fc-cache ]; then
  usr/bin/fc-cache -f
fi