LinuxQuestions.org
Help answer threads with 0 replies.
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 04-10-2006, 09:59 AM   #1
paulsiu
Member
 
Registered: Apr 2006
Posts: 143

Rep: Reputation: 15
Problems with displaying foriegn characters


I was helping out a friend with her Linux setup. She's using Slackware 9. When she attempts to read foriegn language webpages using firefox, the characters are showing up as boxes with hexadecimal numbers in them. We tried other browsers. Same problem.

I tried the same thing on the machine I have at home running Xandros 3.02 OC and it works fine.

1. Is this a font problem, do I need to install additional fonts?

2. Some googling indicate that Slackware does not often come with international support or that it is not a default option during install. The post I read seems to be instructions on installing KDE fonts, but I don't think firefox is a KDE app?

Paul
 
Old 04-10-2006, 10:09 AM   #2
spaceballs
Member
 
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248

Rep: Reputation: 30
Firefox is not a KDE app.

I had a very similar problem where I was unable to view some mathematical characters. What I did was copied all of the TrueType fonts [*.ttf] from a Windows installation and copied them into a fonts directory. Then I switced to those fonts only, which have a much larger character set is my best guess, and haven't had the problem since.

I think there are some other solutions, but this was simple and worked for me.
 
Old 04-10-2006, 10:18 AM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
What's the definitive solution to this everyone? I've been wondering myself. I've always had this problem with Slackware but since I started rolling my own, I've had full support for just about every language under the sun. Gucharmap actually works now too. KDE never touches my system either so support has to be in a base package set, not in the form of il8n packages...
 
Old 04-10-2006, 01:15 PM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Do you have all X fonts installed? I have them all and there isn't any problem viewing even chinese fonts. I'm using opera but firefox I think also works ok.
 
Old 04-14-2006, 02:30 AM   #5
paulsiu
Member
 
Registered: Apr 2006
Posts: 143

Original Poster
Rep: Reputation: 15
Yes, the fonts were the cause of the problem. I copy all of the truetype fonts in my windows XP to the Linux box and reboot the machine. Suddenly, it all works fine. I wonder if there is an alternative though. Not everyone will have a windows machine to copy the fonts from.
 
Old 04-14-2006, 04:54 AM   #6
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Once you've copied the ttf's from a Windows box to a directory - I am assuming it would be /usr/X11R6/lib/X11/fonts/TTF/ - you'd have to run mkfontdir, wouldn't you? Or, is there some other tool that is needed to get the fonts registered and available to the system?
 
Old 04-14-2006, 10:30 AM   #7
paulsiu
Member
 
Registered: Apr 2006
Posts: 143

Original Poster
Rep: Reputation: 15
mkfondir automatic?

In previous release, you would have to do a mkfontdir and restart X.

On Slackware 10.2, I did need to run mkfontdir since it worked right after I copy the font files to /usr/X11R6/lib/X11/fonts/TTF/ and rebooted the machine. I assumed that Slackware now does it automatically during startup.

Paul
 
Old 04-14-2006, 02:18 PM   #8
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
A restart wasn't necessary. Well, not of the machine at least. I did need to restart X.

I copied all the ttf files I could find on my Win2K box and copied them to /usr/X11R6/lib/X11/fonts/TTF/. Then I ran mkfontdir in the directory. When I restarted X, the fonts were there.

One thing I noticed about mkfontdir, though. It doesn't understand the flag -h or --help. If you use mkfontdir --help, it just runs normally as if you had just simply called it. Turned out to be OK, but it surprised me nonetheless. I had expected a short list of its possible options.
 
Old 04-15-2006, 02:52 AM   #9
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
A lot of X server related applications behave this strange way. So I'm using info app or man app.
 
Old 04-15-2006, 11:41 AM   #10
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Yeah, I had taken a look at the man page, but when it came to entering the command, I couldn't remember if I needed one of the options or not. I entered the command `mkfontdir --help` and was surprised when it just returned me back to the command prompt. I checked the modification date for fonts.dir in that directory and saw that it had just been changed.

Personally, I prefer `man app`. I have never really gotten the hang of navigating in `info app`, although I have to admit it really isn't that hard. And as far as I am concerned, there are times when `man -t app | lp` just can't be beat. (I check the length first though. )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
displaying Chinese characters Tereno Linux - General 0 12-16-2005 04:05 PM
Rxvt displaying bad characters Oxyd Linux - Newbie 6 12-12-2004 11:21 AM
Displaying Non-Roman characters with Apache Inexactitude Linux - Networking 1 05-24-2004 06:54 PM
Displaying Japanese characters gjarman Linux - General 1 05-01-2003 06:28 AM
Displaying Japanese characters gjarman Linux - Newbie 0 05-01-2003 02:52 AM

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

All times are GMT -5. The time now is 01:55 AM.

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