My Programming Weblog

Enable Khmer Unicode support on Firefox

With fresh installation of SuSE Linux 10.1 or openSUSE 10.2, Firefox does not display Khmer Unicode font properly. However, there is a very easy fix, all you have to do is to add the “MOZ_ENABLE_PANGO=1″ to your .profile.

Go to your home directory, then edit the .profile file. I use vi (vi .profile)

Scroll down to the last line of the file and add: export MOZ_ENABLE_PANGO=1

Save the .profile file, in my case I do (ESC, SHIFT+Z+Z). Restart the Firefox.

Hi Chhet, the guide posted above will only work under Linux operating system. To enable the Khmer unicode support on Firefox under Windows operating system, you have to make your whole system to support the Khmer unicode font. Fore more information regarding to this, you could visit http://www.khmeros.info for help.

hello there. Is this instruction good for Mandriva user?
I just installed Mandriva. First i don’t know where to find the fonts and second, mozilla is located in root directly which won’t give me access from gui. I suspect i can bypass this permission by doing this in konsole under root.

nsmusic Hi, I hope you have some helps with installing Khmer font by now. Anyway, if you haven’t got the Khmer unicode font installed on your Ubuntu system yet, you can try as the following. As the root, install this package: ttf-khmeros first.

# apt-get install ttf-khmeros

somlanh I think you probably can try to apply this method on Mandriva too. You don’t need root access to enable Khmer unicode support for Firefox. All you have to do is the edit the .profile file which is located in your home directory. Try this:

1. Open konsole as a normal user
2. Type: nano .profile
3. Then follow the rest of the instruction from the original post.
4. Let me know if you still couldn’t get it work. Good luck.

Mak, unfortunatley I no longer run OpenSUSE. I’m using Debian, and as the matter of fact I’m the maintainer of ttf-khmeros font for Debian (Ubuntu?) system.

Anyway, I can redirect you to a site where you can get help with Khmer Unicode on OpenSUSE. Please visit KhmerOS Linux Forum. They’re people who are behind Khmer Unicode font. They run OpenSUSE on all their systems. :-)

Are you running Linux or Windows? I noticed that with new version of Debian/Ubuntu, you don’t have to add anything to your .profile file. As long as you have you installed Khmer unicode font (ttf-khmeros), the Firefox should renders Khmer font correctly.

Let me know what operating system you’re running, maybe I could redirect you to some other helps.