I am looking for a way to automatically create an image rendering for each word in a text file (I am working on an “easy” way to display a complex script on computers and cell phones that don’t support the complex script). Is there an easy way to do something like this? The text will be in Khmer (UTF-8). I’ve already tried imagettftext (php) but it doesn’t seem to be compatible with Khmer Unicode fonts (see here).
The word separation character is not a normal space as in English, but a zero-width space (U+0200B).
Sample Text:
កាលដើមដំបូងឡើយ ព្រះបានបង្កើតផ្ទៃមេឃ និងផែនដី។
Any help you can give would be greatly appreciated! Thank you!
Use Gtk3::WebKit to capture rendered HTML to any libcairo output target.
As of 2011, this is the most modern and flexible solution.
Sample rendering to PNG of the whole Khmer phrase