Add Thai Fonts to Linux
Some Linux versions display Thai vowels in the wrong positions because they lack fonts that render Thai correctly. There are several ways to fix this:
- For Linux systems that support RPM, download msttcorefonts-1.3-4.noarch.rpm and run:
[root@ezylinux ~]# rpm -ivh msttcorefonts-1.3-4.noarch.rpm
-
Copy fonts from Windows into fonts:// in a Nautilus window. Read more at: Add Windows (TrueType) Fonts in GNOME desktop3. Create a directory named windows under /usr/share/fonts/truetype with:
[root@ezylinux ~]# mkdir /usr/share/fonts/truetype/windowsCopy the Windows fonts to /usr/share/fonts/truetype/windows, then enter the directory you created with:
[root@ezylinux ~]# cd /usr/share/fonts/truetype/windowsRun the following command to create the font directory for xfs:
[root@ezylinux ~]# ttmkfdir > fonts.dirThen run:
[root@ezylinux ~]# chkfontpath --add /usr/share/fonts/truetype/windowsto add the fonts to the system. Restart the xfs service with:
[root@ezylinux ~]# service xfs restartTo give the added fonts higher priority, edit the catalogue section of /etc/X11/fs/config. For example, move them to the beginning of the search order: catalogue = /usr/share/fonts/truetype/windows, /usr/share/X11/fonts/misc:unscaled, /usr/share/X11/fonts/75dpi:unscaled, /usr/share/X11/fonts/100dpi:unscaled, /usr/share/X11/fonts/Type1, That completes the setup.