System

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:

  1. 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
  1. 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/windows

    Copy the Windows fonts to /usr/share/fonts/truetype/windows, then enter the directory you created with:

    [root@ezylinux ~]# cd /usr/share/fonts/truetype/windows

    Run the following command to create the font directory for xfs:

    [root@ezylinux ~]# ttmkfdir > fonts.dir

    Then run:

    [root@ezylinux ~]# chkfontpath --add /usr/share/fonts/truetype/windows

    to add the fonts to the system. Restart the xfs service with:

    [root@ezylinux ~]# service xfs restart

    To 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.

EOF.← Back to articles