[{"data":1,"prerenderedAt":34},["ShallowReactive",2],{"article-laravel-snappy-khmer-unicode-support":3},{"id":4,"title":5,"slug":6,"summary":7,"thumbnail":8,"category":9,"tags":15,"categoryId":10,"tagIds":28,"date":29,"updatedAt":30,"views":31,"readingTime":32,"content":33},"6OYJMCmPD10WrscseWwJ","Laravel Snappy — Khmer Unicode Support","laravel-snappy-khmer-unicode-support","To generate the pdf file with the Laravel framework, most developers will use barryvdh/laravel-snappy.","https://miro.medium.com/v2/resize:fit:4800/format:webp/1*bBV0JvhY6dVh80XWOyqKKQ.png",{"id":10,"createdAt":11,"slug":12,"updatedAt":11,"name":13,"description":14},"Gxt2q3kFYWvJFkbBBB2R","2025-12-31T00:34:45.475Z","laravel","Laravel","the PHP framework for artisan",[16,22],{"id":17,"createdAt":18,"updatedAt":18,"slug":19,"color":20,"name":21},"9Khr7YK7PuRT6KT1rPsk","2025-12-31T00:31:02.077Z","php","#336699","PHP",{"id":23,"name":24,"updatedAt":25,"slug":26,"color":27,"createdAt":25},"YcKPP08ybhxhzdShnxVa","PDF","2026-01-01T12:28:13.070Z","pdf","#f51436",[17,23],"2026-01-01T12:30:43.079Z","2026-01-01T12:32:42.198Z",6,1,"To generate the pdf file with the Laravel framework, most developers will use [barryvdh/laravel-snappy](https://github.com/barryvdh/laravel-snappy).\n\n## Step 1: Copying Khmer Fonts on Linux\n\nWe need to copy the Khmer TTF file font from your local machine to your Ubuntu server by using this command\n\n```cmd\nscp ~/Downloads/KhmerMEF1.ttf user@IP_ADDRESS:/home/user\n```\n\n## Step 2: Install Khmer Fonts on Linux\n\nAfter you copied the font to the server, you need to move it to `/usr/share/fonts/truetype` directory.\n\nAfter that, you need to clear and regenerate your font cache by using this command\n\n```cmd\nfc-list -f -v\n```\n\n## Setp3: Call and use it\n\nFinally, you can use it in the laravel-snappy by writing a simple CSS stylesheet.\n\n```css\nfont-family: 'KhmerMEF1', serif !important;\n```",1780799669227]