1 install_thailatex_fonts() {
2 echo ">>> thailatex: patching babel.sty..."
4 echo ">>> thailatex: updating the filename database..."
5 echo ">>> thailatex: updating the fontmap files with updmap..."
6 sync-thailatex || return 1
9 remove_thailatex_fonts() {
10 echo ">>> thailatex: updating the filename database..."
12 echo ">>> thailatex: updating the fontmap files with updmap..."
13 updmap-sys --quiet --disable thai.map
17 echo -n "Updating font cache... "
18 fc-cache -fs > /dev/null
19 mkfontscale usr/share/fonts/TTF
20 mkfontdir usr/share/fonts/TTF
25 install_thailatex_fonts $1
34 remove_thailatex_fonts $1