비스트에서 지원하는 클레어타입 영문 글꼴 설치 스크립이 있어 소개 합니다.
[attachment=0:j7khactc]vista-clear-type.png[/attachment:j7khactc]
필요 패키지 cabextract , curl
$sudo apt-get install cabextract curl
$gedit ~/vista-fonts-installer.sh
내용
[code:j7khactc]
#!/bin/sh
Installing Vista Fonts in Ubuntu
set -e
exists() { which "$1" &> /dev/null ; }
if ! [ -d ~/.fonts ] ; then
exec 2>&1
echo ‘There is no .fonts directory in your home.’
echo ‘Is fontconfig set up for privately installed fonts?’
exit 1
fi
split up to keep the download command short
DL_HOST=download.microsoft.com
DL_PATH=download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26
ARCHIVE=PowerPointViewer.exe
URL="http://$DL_HOST/$DL_PATH/$ARCHIVE"
if ! [ -e "$ARCHIVE" ] ; then
if exists curl ; then curl -O "$URL"
elif exists wget ; then wget "$URL"
elif exists fetch ; then fetch "$URL"
fi
fi
TMPDIR=mktemp -d
trap ‘rm -rf "$TMPDIR"’ EXIT INT QUIT TERM
cabextract -L -F ppviewer.cab -d "$TMPDIR" "$ARCHIVE"
cabextract -L -F ‘*.TT[FC]’ -d ~/.fonts "$TMPDIR/ppviewer.cab"
( cd ~/.fonts && mv cambria.ttc cambria.ttf && chmod 600
calibri{,b,i,z}.ttf cambria{,b,i,z}.ttf candara{,b,i,z}.ttf
consola{,b,i,z}.ttf constan{,b,i,z}.ttf corbel{,b,i,z}.ttf )
fc-cache -fv ~/.fonts
[/code:j7khactc]
퍼미션 주기 $chmod a+x ~/vista-fonts-installer.sh
실행 $~/vista-fonts-installer.sh
[color=#80BFBF:j7khactc]나중에 글꼴 설치 스크립으로 활용 할까 하여 여기 기록 합니다.[/color:j7khactc]