Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
10-23-2003, 02:27 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Distribution: Debian GNU/Linux
Posts: 23
Rep:
|
Thai fonts problem in GTK 2 - slack 9.1
In my full install of Slackware 9.1, Thai characters appear as hex boxes in all of my GTK 2 applications, more specifically, Gaim. (0.71)
All other characters tested (Japanese, Chinese, Korean...) display perfectly.
The only modifications I did to the full default 9.1 setup concerning fonts is adding my own personal font directory and compiling and reinstalling freetype-2.1.5 with the INTERPRETER on.
Symptoms:
- In 9.0, Thai fonts displayed beautifully by default.
- In 9.0, I triend compiling and installing the latest Pango and GTK 2 libraries, but Thai language broke. (those hex boxes) So I tried installing only GTK 2 (by using the Pango with 9.0 instead of the latest) and Thai fonts worked.
- In 9.1, when I run Mozilla with xft support built in, Thai displays perfectly. When I run mozilla without xft support, Thai DOES display, but there are empty "boxes" where spaces should be.
- In 9.1, my GTK 2 applications (Gaim, gqview, gftp) will not display Thai, neither from Slackware nor compiled by me. They all used to in 9.0.
- I can run KDE in Thai mode. The whole system is in perfect Thai characters! So what's up with GTK not being able to find the same fonts?? Grrr...
...Is anyone else having trouble displaying Thai fonts in GTK 2 in 9.1? Or is any other language giving anyone else those hex boxes?
Please ask you need more info. I'm out of ideas on what is wrong! :'(
Thank you very much!
Dave
|
|
|
10-23-2003, 05:02 PM
|
#2
|
Member
Registered: Sep 2003
Location: Czech Republic - Prague
Distribution: Slackware 9.1
Posts: 61
Rep:
|
Do you have directory with thai fonts in your FontPath? (look in /etc/X11/X86Config)
|
|
|
10-23-2003, 05:56 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Distribution: Debian GNU/Linux
Posts: 23
Original Poster
Rep:
|
Yes, I have all the default font paths, along with my own person /usr/local/share/fonts path. So, not only did I install some Thai fonts in my own directory, but I should also be using the default Slackware Thai fonts. (the same that KDE uses, I guess)
The thing that boggles me is, I upgraded (a full reinstall) from 9.0 to 9.1 two days ago, and Thai fonts do not work by default like they did in 9.0. Are Thai fonts for GTK 2 really broken in 9.1, or did I mess something up so quickly just after a brand new install??
|
|
|
10-23-2003, 09:01 PM
|
#4
|
LQ Newbie
Registered: Oct 2003
Distribution: Debian GNU/Linux
Posts: 23
Original Poster
Rep:
|
It would be really helpful if someone could please see if they have the same problem... My favortie way to test is:
1) Start a GTK 2 app, I use Gaim 0.71, and open an IM window.
2) Go to http://news.mweb.co.th/ (for Thai text!)
3) Highlight some Thai text and paste it into the Gaim window.
4) Does it work?
Thank you so much!
|
|
|
10-23-2003, 11:01 PM
|
#5
|
Member
Registered: May 2003
Location: Upstate NY, U.S.
Distribution: Slackware
Posts: 248
Rep:
|
I don't generally have much need for Thai fonts, but I thought I'd check to see if this would be a problem on my 9.1 machine also. It is. I tried pasting text into gedit and got the hex boxes as you did. I also tried pasting into AbiWord and got little circles instead of Thai characters. They pasted perfectly into Kword. It doesn't seem like a problem with fontconfig because the characters display fine in Mozilla, which uses fontconfig. This one seems kind of odd.
|
|
|
01-05-2004, 10:46 PM
|
#6
|
LQ Newbie
Registered: Oct 2003
Distribution: Debian GNU/Linux
Posts: 23
Original Poster
Rep:
|
SOLUTION
I've been using Slackware since 8.0. I did a full install of Slackware 9.1 onto a clean harddisk on my Fujitsu P2110 laptop.
The problem was Thai language would not show up in GTK2 applications. Thai characters would appear as ugly hex boxes. All other languages show fine, including Japanese, Arabic, and Chinese characters. I have some Thai fonts on my computer, and Thai was working in 9.0.
After a lot of poking around, I found the problem lies in the Pango library. So, to make a yucky story short, pango-1.2.1 (9.0) displays Thai correctly and pango-1.2.5 (9.1) does not.
An easy solution is to install the 9.0 pango package into a 9.1 install. A better solution is to compile your own pango-1.2.1, because 9.1 has some extra font features that 9.0 didn't.
Sorry, it's kind of a yucky solution, but it works. Here's hoping for Slackware 10!
|
|
|
All times are GMT -5. The time now is 11:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|