LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-13-2008, 05:21 PM   #1
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Rep: Reputation: 0
Can't view TrueType font in FireFox or IE


hello,

I have KANOTIX 2007-Thorhammer-RC7.

I want to read a website that is in a non-english language.

The website is at www.AjitJalandhar.com

It requires a font called Satluj.TTF

I downloaded and put the font in /usr/share/fonts/satluj.ttf

and done the mkfontdir and mkfontscale commands...

restarted the computer and used Iceweasel (Firefox) to view the website and the font had installed because some characters I could see but not most. The website works very well in Windows Internet Explorer.

So i installed ies4linux and fired up IE 5.0 but all i got was squares.

So i put the satluj.ttf file in /.wine/drive_c/windows/fonts/satluj.ttf

and restarted computer and nothing changed.

I can't figure out what is wrong maybe encoding issues or something.

I am not an expert so please do explain in detail, if you have a solution..

I don't want to lose to windows again....last time a friend couldn't get XP to work on laptop so I installed Ubuntu on it but I couldn't get wireless card to work so he said its no good without internet and now another friend has problem with XP on his desktop and so i put linux on it but he said its not good unless he can read the punjabi news paper (www.AjitJalandhar.com)

please help.

Thank You.
 
Old 11-13-2008, 06:51 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Iceweasel ... Then you probably have Debian ?

# 'cp satluj.ttf /usr/share/fonts/truetype'

And the most important : # 'chmod 0755 satluj.ttf'
(which can also be done before copying)

Restart the browser, not the computer, ... it works.
 
Old 11-13-2008, 10:49 PM   #3
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
yes debian.

Thank you.

I am at work i will try this when i get home.
 
Old 11-14-2008, 01:25 AM   #4
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
nope, just as i thought...i think the font is registered but maybe some issue with displaying it in linux...

you said 'it works', can you really see that website on your linux box (www.AjitJalandhar.com)??
 
Old 11-14-2008, 04:48 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
This time I'm on Debian Etch :
chmod 755 satluj.ttf
'cd /usr/share/fonts/truetype/' and then 'su'
'cp /home/knudfl/1-download/satluj.ttf .'
where the dot. means the current directory.

The whole newspaper from your link is then displayed
with nice punjabi letters.
If you started the browser before the above, give it a
minute to die, before restarting it.

Tested on PCLinuxOS, Ubuntu 8.10, Debian 4 Lenny too,
all with a perfect result.
 
Old 11-16-2008, 01:34 AM   #6
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
i give up....

i dun that but still no difference - only some characters of punjabi and the rest are squares...

I wiped Kanotix and went to debian.org and got debian-40r5-i386-kde-CD-1.iso

nice system and fast too!

so I dun the same thing here...download the font, chmod 755, cp here to there, mkfontdir, mkfontscale etc etc

fired up konqueror and voila...same sh*t...no different to what i saw in kanotix or knoppix or any other linux for that matter....

thanks for your help anyway....i am just gonna partition the HD and put XP on one and debian on the other so my friend can use XP for reading the paper and debian for general browsing and downloading.

PS how can you be sure that you can see punjabi?? do you know what it looks like? plus if you preview SATLUJ.TTF in KFontViewer you will see a mostly symbols and only one or two punjabi characters...(except for the numerals (0 - 9) they are displayed in punjabi and normal).
 
Old 11-16-2008, 07:02 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Well, it looks like this (random sample)
http://i390.photobucket.com/albums/o...luj-screen.jpg

The fonts are visible in icweasel, firefox2, firefox3,
open office 2 and 3.

I do not know, why you can't see the font, I put them into a
random place, and did not run 'mkfontdir', 'mkfontscale'
 
Old 11-16-2008, 03:50 PM   #8
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
you are right, u can see the font perfectly...why can't I!?!?!

and how can you just put the font in a random place and and not tell the font server (xfs) where it is??
how will applications know where to look for that font?

SO are you saying that I should just download the font chmod it and copy it to say /usr/share/fonts and restart the browser?

or are there some more steps that I am missing.
 
Old 11-16-2008, 04:42 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
......#5
/usr/share/fonts/truetype/satluj.ttf
for Debian worked.
 
Old 11-16-2008, 11:17 PM   #10
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
I think i know the right question to ask now....what character encoding are you using in Iceweasel?

go to Menu View -> Character Encoding..... is it Western (ISO-8859-1)??
 
Old 11-17-2008, 01:19 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Yes, it is.

Sorry, never considered, that you were
using something different.
 
Old 11-17-2008, 05:30 AM   #12
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
sorry, one last question what version of FireFox are you using? Are you using any add-ons that you may help this problem.
 
Old 11-17-2008, 08:59 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
#7
Quote:
The fonts are visible in icweasel, firefox2, firefox3,
open office 2 and 3.
Probably 4 different versions in PCLinuxOS, Ubuntu 8.10,
Debian 4 Lenny, Debian Etch, no add-on's except "Adblock"
which has nothing to do with fonts.
 
Old 11-19-2008, 10:40 PM   #14
bovick
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Ok,
I've got the exact same problem. Running Firefox 3.0.4 on Ubuntu Ultimate Edition 2.0.
I think there is just a problem with ajitjalandhar in combination with Firefox 3.0.4 as
I'm getting the same problem on a fresh XP system with firefox 3.0.4.. unless there is some
setting that needs to be changed or some such.
I wonder how ajitweekly.com dispalys their text.. as the punjabi on that site works great.

Any ideas?
 
Old 12-07-2008, 01:42 AM   #15
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
i think the best solution is to email those idiots developers at ajitjalandhar.com and tell them people use other software than just Internet Explorer and they need to badly update the website and they should stop using embedded fonts and perhaps create a proper site that uses a proper punjabi font like (http://satluj.com/). I can view this site in punjabi in Windows and Linux (Firefox/iceweasel/konqueror etc etc) they got some info on firefox update for punjabi font as well....
 
  


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
a Truetype font resembling Windows' System font? newbiesforever Linux - General 12 02-04-2010 12:57 AM
Ugly Truetype font in GTK apps kvzrock Linux - General 0 02-08-2004 11:35 PM
Adding a TrueType Font : Redhat ? Zitan Linux - General 6 08-10-2003 05:44 PM
TrueType Font Display and long font names jdeka Slackware 0 06-28-2003 04:04 AM
Mandrake 9.1 Truetype font question stodge Linux - Distributions 2 05-16-2003 01:44 PM


All times are GMT -5. The time now is 06:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration