LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 11-13-2008, 04:21 PM   #1
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8
Thanked: 0
Can't view TrueType font in FireFox or IE


[Log in to get rid of this advertisement]
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.
sonusingh is offline     Reply With Quote
Old 11-13-2008, 05:51 PM   #2
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009,slack12.2, Debian Lenny (+17 others, for test only)
Posts: 2,010
Thanked: 113
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.
knudfl is offline     Reply With Quote
Old 11-13-2008, 09:49 PM   #3
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8
Thanked: 0

Original Poster
yes debian.

Thank you.

I am at work i will try this when i get home.
sonusingh is offline     Reply With Quote
Old 11-14-2008, 12:25 AM   #4
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8
Thanked: 0

Original Poster
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)??
sonusingh is offline     Reply With Quote
Old 11-14-2008, 03:48 AM   #5
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009,slack12.2, Debian Lenny (+17 others, for test only)
Posts: 2,010
Thanked: 113
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.
knudfl is offline     Reply With Quote
Old 11-16-2008, 12:34 AM   #6
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8
Thanked: 0

Original Poster
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).
sonusingh is offline     Reply With Quote
Old 11-16-2008, 06:02 AM   #7
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009,slack12.2, Debian Lenny (+17 others, for test only)
Posts: 2,010
Thanked: 113
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'
knudfl is offline     Reply With Quote
Old 11-16-2008, 02:50 PM   #8
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8
Thanked: 0

Original Poster
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.
sonusingh is offline     Reply With Quote
Old 11-16-2008, 03:42 PM   #9
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009,slack12.2, Debian Lenny (+17 others, for test only)
Posts: 2,010
Thanked: 113
......#5
/usr/share/fonts/truetype/satluj.ttf
for Debian worked.
knudfl is offline     Reply With Quote
Old 11-16-2008, 10:17 PM   #10
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8
Thanked: 0

Original Poster
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)??
sonusingh is offline     Reply With Quote
Old 11-17-2008, 12:19 AM   #11
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009,slack12.2, Debian Lenny (+17 others, for test only)
Posts: 2,010
Thanked: 113
Yes, it is.

Sorry, never considered, that you were
using something different.
knudfl is offline     Reply With Quote
Old 11-17-2008, 04:30 AM   #12
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8
Thanked: 0

Original Poster
sorry, one last question what version of FireFox are you using? Are you using any add-ons that you may help this problem.
sonusingh is offline     Reply With Quote
Old 11-17-2008, 07:59 AM   #13
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009,slack12.2, Debian Lenny (+17 others, for test only)
Posts: 2,010
Thanked: 113
#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.
knudfl is offline     Reply With Quote
Old 11-19-2008, 09:40 PM   #14
bovick
LQ Newbie
 
Registered: Nov 2008
Posts: 1
Thanked: 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?
bovick is offline     Reply With Quote
Old 12-07-2008, 12:42 AM   #15
sonusingh
LQ Newbie
 
Registered: Nov 2008
Posts: 8
Thanked: 0

Original Poster
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....
sonusingh is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 05:26 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration