[Tex/LaTex] How to install Thai fonts

babelfonts

I am using MiKTeX 2.9, WinEdt 5.5 and Windows 7. What is the easiest way to install the Thai fonts so that I can use the package thai babel?

The error message that I got is:

No file LTHnorasi.fd LaTeX Error: This NFSS system isn't set up
properly.

Best Answer

Basically, any OpenType fonts in your system are valid to use in XeLaTeX. You may not need to install a new Thai font. Moreover, you may have fonts like TH Sarabun New or Cordia installed in your font's folder already. In case that additional Thai fonts are required, you just simply right click at the you_new_font.ttf and then choose Install.

In order to use Thai font in your tex, you may use the following lines:

\documentclass[12pt,a4paper]{article}
\usepackage{fontspec}
\defaultfontfeatures{Scale=1.23}
\XeTeXlinebreaklocale “th_TH”
\setmainfont{TH Sarabun New}

\begin{document}
แอลจีเรียบอร์เนียวฮานอยโปรตุเกสมัทราส ปากีสถานอันดามันคอโมโรส อิรัก 
ญี่ปุ่นอุรุกวัยโกลกาตาเอดินบะระ ไลบีเรีย วินเซนต์ซิมบับเวโมนาโคปาเลา 
\end{document}

Save it with unicode encoding (UTF-8), then render the document with the command xelatex thedocname.tex. Please make sure that your editor is unicode supported.