LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-31-2005, 12:40 PM   #1
schwing
LQ Newbie
 
Registered: Oct 2003
Location: Michigan, USA
Distribution: YellowDogLinux & Debian Sarge
Posts: 14

Rep: Reputation: 0
Asian Fonts in Firefox 1.5 as Square Boxes


I've had this problem for a while now. I have a x86 Debian Sarge install with XFree86 4.3.0. If I use Firefox (1.5) and visit a site with Asian fonts, the characters that I assume are Chinese characters show up as square boxes with 4 letters/numbers inside of them, 2 on the top and 2 on the bottom. If this doesn't make any sense, here is a small screenshot of what I see:

Square Box Fonts

What causes this? Is there something I don't have installed? Is it a Firefox setting?

At work, I use MacOSX and have Firefox 1.5 and I don't have this problem there; only on my home linux box.

Any ideas of what to try?

-ken
 
Old 12-31-2005, 12:45 PM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
do you have asian fonts installed (chinese, japanese, etc...)?

if you do, sometimes some sites don't specify their charsets, so you could try to manually change the view encoding on the site and see if that works.

What's the link to the site in your screenshot?

if the site works on your mac but not on linux, my guess is you don't have any asian fonts installed.
 
Old 12-31-2005, 02:50 PM   #3
schwing
LQ Newbie
 
Registered: Oct 2003
Location: Michigan, USA
Distribution: YellowDogLinux & Debian Sarge
Posts: 14

Original Poster
Rep: Reputation: 0
Here is the link I got it from:

http://64.233.167.104/search?q=cache...y+osechi&hl=en

It's from a Google cache entry of a PDF.

-ken
 
Old 12-31-2005, 04:59 PM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Well, it comes up fine for me without having to specify the encoding. The page looks like it's supposed to be in japanese. Download japanese fonts and you should be good to go.

I don't have any links with me on where to find chinese and japanese font packs though... You'll need to do some googling for that.

Also, for pdfs, if you get the latest linux version, Asian font support should be included.

edit: google always uses utf-8 for the encoding, so you should be able to use the MS Arial Unicode font to handle different languages (i think).

Last edited by megaspaz; 12-31-2005 at 05:02 PM.
 
Old 01-02-2006, 08:48 PM   #5
schwing
LQ Newbie
 
Registered: Oct 2003
Location: Michigan, USA
Distribution: YellowDogLinux & Debian Sarge
Posts: 14

Original Poster
Rep: Reputation: 0
I've just used Debian's 'aptitude' and installed every xfont package that looked like it would contain Asian fonts, but I'm still seeing those boxes. I even exited my X windows session and they are still there.

I'm also seeing these on Amazon's site as well. I did a 'view source' and found this little block of code:

Code:
<b class="price">$26.37</b> &#8194 </span>
I did a Google search and found (http://www.tntluoma.com/sidebars/codes/) that says the 8194 is a special html code for 'en space'. This page shows examples of other special characters, which all display fine in my browser, except for these 'en space' codes which still show up as blocks.

Does this give anyone a clue as to what I might be missing?

-ken
 
Old 01-02-2006, 09:07 PM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
well, the thing is, I don't think firefox is doing the correct encoding for viewing, or it may be but you don't have any unicode fonts. A couple of things to try, is to try those pages with other browsers. Try that google cache page with firefox again, but manually set the encoding to UTF-8 and see if it comes up good. If it doesn't, then it's a font problem. If it does come up good, then it's a browser issue. X fonts, from my knowledge aren't unicode fonts, so you can install all the X fonts you want, but it's not going to help the problem.

Unfortunately, all the URLs where I got my fonts are gone now. I'm packaging it up and it's uploading to my host right now, but it's a 29 MB upload. I'll post a link to those fonts when it's done uploading.

Also, If you have access to MS word, copy the fonts in windows and install them in your linux box as MS Office will install unicode fonts.

Last edited by megaspaz; 01-02-2006 at 09:09 PM.
 
Old 01-02-2006, 09:11 PM   #7
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
http://www.jandjgraphics.com/Misc/asian_fonts.tar.gz

There's a set of chinese and japanese fonts in that tarball. Those should get you by with chinese/japanese pages.
 
Old 01-03-2006, 06:56 PM   #8
schwing
LQ Newbie
 
Registered: Oct 2003
Location: Michigan, USA
Distribution: YellowDogLinux & Debian Sarge
Posts: 14

Original Poster
Rep: Reputation: 0
I just tried hitting the Google cache URL in Opera, Konqueror, Epiphany and Mozilla. They all showed the square boxes except for Opera. Maybe Opera has them "compiled in"???

I just downloaded your tar.gz file and will try to find how to install fonts in Debian and then post back.

Thanks for your persistence.

-ken
 
Old 01-03-2006, 07:14 PM   #9
schwing
LQ Newbie
 
Registered: Oct 2003
Location: Michigan, USA
Distribution: YellowDogLinux & Debian Sarge
Posts: 14

Original Poster
Rep: Reputation: 0
I found this link for installing fonts in Debian (http://www.paulandlesley.org/linux/xfree4_tt.html) and together with your fonts everything is working great! The fonts even show up in the other browsers.

Thank you very much!

-ken
 
  


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
Red Hat 9.0 Webserver not displaying Asian fonts AHjuncti Linux - Software 2 09-19-2005 03:34 PM
Square fonts with CEDEGA? Spooky Linux - Games 1 05-14-2005 02:14 PM
Firefox dying on dialog boxes Artanicus Linux - Software 1 02-22-2005 01:10 AM
Firefox searching in edit text boxes Muzzy Linux - Software 0 01-25-2005 03:14 PM
Displaying Asian fonts in Mozilla aclaunch Linux - Software 0 01-25-2004 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:02 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