LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-11-2011, 01:17 AM   #1
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Thumbs up Slackware and Thai fonts


Someone may find this useful so I am posting it.

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:

http://linux.thai.net/pub/thailinux/...-0.4.15.tar.gz

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.

Code:
# cd /usr/share/fonts/truetype
# tar xzf ~/Download/thai-ttf-0.4.15.tar.gz
# mv thai-ttf-0.4.15/etc/fonts/conf.avail/* /etc/fonts/conf.avail
# ln -s /etc/fonts/conf.avail/64-ttf-thai-tlwg.conf /etc/fonts/conf.d/
# ln -s /etc/fonts/conf.avail/89-ttf-thai-tlwg-synthetic.conf /etc/fonts/conf.d/
# rm -rf thai-ttf-0.4.15/etc
Screenshot: http://dl.dropbox.com/u/1574277/Screenshot-07102011.png

Hope someone else finds this post useful.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-14-2015, 05:38 AM   #2
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 295

Rep: Reputation: 181Reputation: 181
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.
 
2 members found this post helpful.
Old 04-14-2015, 06:14 AM   #3
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
very strange. i thinked, nowadays, utf-8 / utf-16 contains all world possible \ usage symbols ?
 
Old 04-14-2015, 06:54 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Quote:
Originally Posted by WiseDraco View Post
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.
 
3 members found this post helpful.
Old 04-20-2015, 02:40 PM   #5
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Original Poster
Rep: Reputation: 174Reputation: 174
Wow, almost 3 years and someone did find it useful!!
 
Old 10-22-2015, 09:47 PM   #6
Strykar
Member
 
Registered: Apr 2008
Distribution: Slackware64, OpenBSD, Debian, Arch
Posts: 42

Rep: Reputation: 6
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
 
1 members found this post helpful.
Old 05-05-2017, 01:32 PM   #7
foxmean
LQ Newbie
 
Registered: May 2017
Posts: 2

Rep: Reputation: Disabled
Post Thank you very much all of you

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.
 
3 members found this post helpful.
Old 10-06-2017, 02:15 AM   #8
X00D45
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 2
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!!!
 
Old 10-07-2017, 11:10 AM   #9
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Original Poster
Rep: Reputation: 174Reputation: 174
Good to see this post is doing well for others over 6 years later!!
 
Old 10-11-2017, 01:33 AM   #10
X00D45
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 2
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
 
Old 01-23-2018, 10:05 AM   #11
X00D45
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 2
Also I just found today, Lanna script fonts (Thai Tam ) from kengtung.org

I hope someone find this useful
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 13 Thai language support for Dolphin, OOo title bars, 'Everything' install slackist Slackware 1 12-12-2009 05:57 AM
Can't read Thai fonts jmite Linux - Newbie 4 08-01-2008 07:41 PM
install Thai fonts - thanks LQ and Barry Kauler pppaaarrrkkk Linux - Newbie 0 09-24-2007 06:37 PM
Problem setting Thai Fonts in OOo 1.1.1 on RH9 gmichel Linux - Newbie 18 11-15-2004 08:37 AM
Thai fonts problem in GTK 2 - slack 9.1 static_drc Slackware 5 01-05-2004 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration