local TTF_DIR="${INSTALL_ROOT}/usr/share/fonts/X11/TTF" &&
local OTF_DIR="${INSTALL_ROOT}/usr/share/fonts/X11/OTF" &&

case "${INTER_FORMAT}" in
  otf)
    if [ ! -d "${OTF_DIR}" ]; then
      install -vm 755 -d "${OTF_DIR}"
    fi &&

    install -vm 644 "Inter"/*.otf "${OTF_DIR}"
  ;;
  ttf-hinted)
    if [ ! -d "${TTF_DIR}" ]; then
      install -vm 755 -d "${TTF_DIR}"
    fi &&

    install -vm 644 "Inter (Hinted, for Windows)"/*.ttf "${TTF_DIR}"
  ;;
esac
