Commits

Smith Dhumbumroong  committed 0241d9e

Add codes to enable and disable Thai TeX font maps.

  • Participants
  • Parent commits f1cc5a8

Comments (0)

Files changed (1)

File ttf-latex-tlwg/ttf-latex-tlwg.install

   echo "done."
 }
 
+enable_tex_font_maps() {
+  echo -n "Updating TeX filename database..."
+  mktexlsr
+  echo "done."
+
+  echo -n "Updating TeX font map..."
+  updmap-sys --quiet --enable Map=nectec.map
+  updmap-sys --quiet --enable Map=nf.map
+  updmap-sys --quiet --enable Map=tlwg.map
+  echo "done."
+}
+
+disable_tex_font_maps() {
+  echo -n "Updating TeX filename database..."
+  mktexlsr
+  echo "done."
+
+  echo -n "Updating TeX font map..."
+  # disable Thai font maps
+  updmap-sys --quiet --syncwithtrees
+  echo "done."
+}
+
 post_install() {
   update_font_cache $1
+  enable_tex_font_maps $1
 }
 
 post_upgrade() {
 }
 
 post_remove() {
-  post_install $1
+  update_font_cache $1
+  disable_tex_font_maps $1
 }