Laravel Snappy — Khmer Unicode Support

Mostly our Khmer characters don’t support for overall programming language, and we need to configure it on top.

Step 1: Copying Khmer Fonts on Linux

We need to copy the Khmer TTF file font from your local machine to your Ubuntu server by using this command

scp ~/Downloads/KhmerMEF1.ttf user@IP_ADDRESS:/home/user

Step 2: Install Khmer Fonts on Linux

After you copied the font to the server, you need to move it to the /usr/share/fonts/truetype directory

And after that, you need to clear and regenerate your font cache by using this command

fc-list -f -v

Step 3: Call and use it

Finally, you can start and use it in the snappy with a simple CSS stylesheet.

font-family: 'KhmerMEF1', serif !important;