SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My wife is Thai and I have been struggling with getting Thai fonts to render properly in Slackware, especially with Firefox since this is her source of news back home.
After some digging around the net with Google, I came across these fonts:
I followed the example install directions and the fonts are looking great now. Before they were almost unreadable. Another plus is now I can read all files that are in Thai.
And useful indeed! Glad to come across this as I need to set Thai font support for Chrome and others. Will put this on docs.slackware.com for posterity.
very strange. i thinked, nowadays, utf-8 / utf-16 contains all world possible \ usage symbols ?
UTF-8 is a standard for encoding well defined characters, each associated to a specific name. A handy table is provided here. But to physically draw a character on the screen you need to associate to it a glyph that comes from a file, containing data that represent a set of straight line segments and quadratic Bézier curves in the case of True Type fonts.
That's a lot of work and each True Type font includes a limited number of these glyphs.
You can make your own font or modify existing ones in Slackware using fontforge.
Last edited by Didier Spaier; 04-14-2015 at 01:07 PM.
Relevant after years indeed.
I just tried this with 0.4.17 and Apache still displays the Thai fonts incorrectly.
Code:
à¹„àž—àž¢ à¹„àž—àž¢ | zombieTH àžªàž‡àž„àž£àž²àž¡ Engineer I
Oddly, rrd graphs on the same system display it correctly:
Code:
ไทย ไทย | zombieTH สงคราม Engineer I
Also, the directory /usr/share/fonts/truetype does not exist in 14.1
I tried creating it and copying the fonts over and also copying them to the existing /usr/share/fonts/TTF but no cigar
Code:
root@slack14:/tmp/thai/thai-ttf-0.4.17# fc-cache -vf
Fontconfig warning: "/etc/fonts/conf.d/89-ttf-thai-tlwg-synthetic.conf", line 24: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/89-ttf-thai-tlwg-synthetic.conf", line 34: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/89-ttf-thai-tlwg-synthetic.conf", line 46: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/89-ttf-thai-tlwg-synthetic.conf", line 59: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/89-ttf-thai-tlwg-synthetic.conf", line 71: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/89-ttf-thai-tlwg-synthetic.conf", line 84: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/89-ttf-thai-tlwg-synthetic.conf", line 96: Having multiple values in <test> isn't supported and may not work as expected
/usr/share/fonts/OTF: caching, new cache contents: 23 fonts, 0 dirs
/usr/share/fonts/TTF: caching, new cache contents: 168 fonts, 0 dirs
/usr/share/fonts/Type1: caching, new cache contents: 64 fonts, 0 dirs
/usr/share/fonts/Speedo: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cyrillic: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/misc: caching, new cache contents: 95 fonts, 0 dirs
/root/.local/share/fonts: skipping, no such directory
/root/.fonts: skipping, no such directory
/var/cache/fontconfig: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
This post is really helpful for me;and I'm quite sure that it help many Thais a lot.
***Please note, I'm using Slackware GNU/Linux***
As the time goes by and this solution is not exactly works for me now;so I'm try to figure out what solution could be in "this" time and I found it below.
For Reading Thai
1. check out this font and choose the new one to download (such as thai-ttf-0.4.17.tar.gz).
2. And Follow step in this Slack's Document
***Note 2. is depend on your Distro***
My solution can be summarize in this code
Please substitution thai-ttf-0.4.17.tar.gz with the version you selected
Code:
$ wget https://linux.thai.net/pub/thailinux/software/thai-ttf/thai-ttf-0.4.17.tar.gz
$ tar xzf thai-ttf-0.4.17.tar.gz
$ cd thai-ttf-0.4.17
$ sudo cp *.ttf /usr/share/fonts/TTF
$ sudo cd /usr/share/fonts/TTF
$ sudo mkfontdir && sudo mkfontscale
$ sudo fc-cache -f -v
$ sudo reboot # note that you can run $ pkill x and login as CLI then run $ startx instead
For Typing in Thai simply use your GUI configuration to add Keyboard layout. If you not install X-windows (also Wayland as well), you (maybe) can't see this webpage.
I hope this were useful for someone in the future.
LoL
Thanks A LOT FOXMEAN !!!!
since I updated to Slackware 14.2 I was looking/waiting for a solution to render thai fonts without luck....
Cheers my friend!!!
and thanks to you too "SqdnGuns" , who made the first post...
I wished I had read your post in more detail , and may be I would not have spent a year waiting for the answer from "Foxmean" :-D
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.