VectorLinux

The nuts and bolts => Installation & Updates => Topic started by: Sivatheja on February 02, 2008, 10:26:26 pm

Title: How to get and install Indic fonts?
Post by: Sivatheja on February 02, 2008, 10:26:26 pm
Hi,

I use sea monkey, and right now it is not rendering Indic fonts in VL 5.8 Gold. Is this correct forum to post, or should I post this in SeaMonkey's forum?

One of the sites redirected me to the following link to get Indic fonts installed.
http://te.wikipedia.org/wiki/%E0%B0%B5%E0%B0%BF%E0%B0%95%E0%B1%80%E0%B0%AA%E0%B1%80%E0%B0%A1%E0%B0%BF%E0%B0%AF%E0%B0%BE:Configuring_on_Linux

Any help is greatly awaited.

Best Regards,
Sivatheja.
Title: Re: How to get and install Indic fonts?
Post by: hata_ph on February 03, 2008, 04:23:55 am
just do this....

download the fonts you want and put it in /usr/X11R6/lib/fonts/TTF and then run fc-cache as root (make sure the fonts file is with read access for everyone)

or create a ~/.fonts folder inside the users directory and run fc-cache (apply for that users login only..)

restart X after that....

http://www.vectorlinux.com/forum2/index.php?topic=3605.0

PS: Some time I need to do that a few time before it really take it effect......
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 03, 2008, 04:53:25 am
That link says about Ubuntu fonts, will that work for VL?
Title: Re: How to get and install Indic fonts?
Post by: hata_ph on February 03, 2008, 08:21:59 am
That link says about Ubuntu fonts, will that work for VL?

it work for me in VL5.8 and VL5.9....... :P
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 03, 2008, 06:53:54 pm
I've done as said, fc -cache seems to do nothing, but I have some doubts.

apt-get downloads fonts?
Code: [Select]
sudo apt-get install ttf-indic-fonts
sudo apt-get remove ttf-freefont

apt-get downloads fonts?
Code: [Select]
sudo apt-get install language-pack-te language-support-te
sudo sed -i.orig 's/lang=:/lang=te:/g' /usr/share/fonts/truetype/ttf-telugu-fonts/fonts.cache-1
fc-cache

I think here, we are replacing fonts with the desired ones! Is this safe for VL? How to know which 'font file name' is the web page looking for?
Code: [Select]
sudo apt-get install language-pack-te language-support-te

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <alias>
  <family>sans-serif</family>
  <prefer>
   <family>Pothana2000</family>
  </prefer>
 </alias>
 <alias>
  <family>serif</family>
  <prefer>
   <family>Pothana2000</family>
  </prefer>
 </alias>
 <alias>
  <family>monospace</family>
  <prefer>
   <family>Pothana2000</family>
  </prefer>
 </alias>
</fontconfig>

fc-cache

apt-get downloads fonts?
Code: [Select]
sudo apt-get install ttf-telugu-fonts

Best Regards,
Sivatheja
Title: Re: How to get and install Indic fonts?
Post by: hata_ph on February 03, 2008, 08:00:48 pm
Quote
I've done as said, fc -cache seems to do nothing, but I have some doubts.

like i say before, it take me a few time to make the fonts working.....

try run below command in root after you have copy the fonts file to the TTF directory...

mkfontscale
mkfontdir
fc-cache

btw, make sure the fonts file is readable to all users.....

http://vietunicode.sourceforge.net/howto/fontlinux.html
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 04, 2008, 07:03:24 am
I havent tried those properties thing.
[RIghtclick] --> [properties] --> [permissions] is this the correct place to look for the permissions (as root)?
It says
owner is root and with read write permissions, and
'group' is root with read only permissions.

How should I give permission to all Logins of VL?

Meddling permissions of
'/usr/X11R6/lib/fonts/TTF'
would effect all files in it?

'properties' of multiple file selection is disabled, any other idea  to apply the  changes for all files at a time?

Thanks,
Sivatheja.
Title: Re: How to get and install Indic fonts?
Post by: hata_ph on February 04, 2008, 09:27:31 am
my bad.....i think the actual location for the fonts file is /usr/X11R6/lib/X11/fonts/TTF

Quote
vector://usr/X11R6/lib/X11/fonts/TTF
hata_ph:$ ls -all
total 62771
drwxr-xr-x  2 root root     5568 2008-01-01 01:08 ./
drwxr-xr-x 12 root root      296 2008-01-01 07:58 ../
-rw-r--r--  1 root root   151000 2007-12-31 10:27 ANTQUAB.TTF
-rw-r--r--  1 root root   150416 2007-12-31 10:27 ANTQUABI.TTF
-rw-r--r--  1 root root   149092 2007-12-31 10:27 ANTQUAI.TTF
-rw-r--r--  1 root root   134200 2007-12-31 10:27 ARIALN.TTF
-rw-r--r--  1 root root   139128 2007-12-31 10:27 ARIALNB.TTF
-rw-r--r--  1 root root   138568 2007-12-31 10:27 ARIALNBI.TTF
-rw-r--r--  1 root root   141408 2007-12-31 10:27 ARIALNI.TTF
-rw-r--r--  1 root root 23275812 2007-12-31 10:27 ARIALUNI.TTF
-rw-r--r--  1 root root   155528 2007-12-31 10:27 BKANT.TTF
-rw-r--r--  1 root root   160940 2007-12-31 10:27 BOOKOS.TTF
-rw-r--r--  1 root root   154576 2007-12-31 10:27 BOOKOSB.TTF
-rw-r--r--  1 root root   162460 2007-12-31 10:27 BOOKOSBI.TTF
-rw-r--r--  1 root root   161020 2007-12-31 10:27 BOOKOSI.TTF
-rw-r--r--  1 root root    54412 2007-12-31 10:27 BSSYM7.TTF
-rw-r--r--  1 root root   165248 2007-12-31 10:27 CENTURY.TTF
-rw-r--r--  1 root root    33524 2007-11-12 13:21 DENMARK.TTF
-rwxr-xr-x  1 root root   512728 2007-10-28 23:23 DejaVuCondensedSans.ttf*
-rwxr-xr-x  1 root root   499360 2007-10-28 23:23 DejaVuCondensedSansBold.ttf*

while in the /usr/X11R6/lib/X11/fonts/TTF directory....
just run chmod a+r *.ttf in root to make all fonts file readable to all users
you can try to read more about chmod command to know more about file permission in Linux.......

for my own question, I just found out that there is a few location that have the fonts file....
Quote
/usr/share/fonts/TTF
/usr/X11R6/share/fonts/TTF
/usr/X11R6/lib/X11/fonts/TTF

are there all the same?

and I did double check the /etc/fonts/fonts.conf and found out the fonts directory is as listed below.....
Quote
<!-- Font directory list -->

   <dir>/usr/share/fonts/OTF</dir>
   <dir>/usr/share/fonts/TTF</dir>
   <dir>~/.fonts</dir>

before this I only copy the TTF file to /usr/X11R6/lib/X11/fonts/TTF which is not listed in the fonts.conf......is a bit confusing to me.......
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 04, 2008, 09:37:02 am
No, I think the first path given is also correct, anyhow I'll try the second path also.

I've just discovered options said in my browser here. The point is that, it does have built in support for some of the Indic fonts, but not all.
The browser does list the fonts I've installed said in the first location, even the Indic font I've downloaded, but still the page does not render    properly.

I've said the browser to  use the Indic font downloaded if the requested font not found, and there came some weird rendering of the page. So the problem is not installing the font, it is installing the correct font.

May be googling for Linux fonts will help, but is there any way to know the font being requested by the page?

Best Regards,
SIvatheja.
Title: Re: How to get and install Indic fonts?
Post by: caitlyn on February 04, 2008, 10:28:51 am
There was an Indic fonts package built for VL 5.8.  Simply install that package into 5.9.  The package at Linuxpackages,net for Slackware will also work.

An indic-fonts package for 5.9 is on the way.
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 04, 2008, 10:31:41 am
Oh! I'm using 5.8 Gold. Thanks a lot for the pointer. Can I get the  URL?

How to know  my machine architechture?
Title: Re: How to get and install Indic fonts?
Post by: exeterdad on February 04, 2008, 02:01:29 pm
uname -m will tell you :)
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 04, 2008, 02:03:44 pm
Mine is i686. Just started seeing Linuxpackages.org
Title: Re: How to get and install Indic fonts?
Post by: exeterdad on February 04, 2008, 02:09:52 pm
Keep in mind.  You will also be able to run i386, i486 and i586 as well.  People having lower architectures won't be able to run the higher more optimized packages.
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 04, 2008, 02:13:25 pm
Thanks a million! This would multiply my hits in a search :)
Title: Re: How to get and install Indic fonts?
Post by: caitlyn on February 04, 2008, 06:40:54 pm
No search needed.  The package for VL 5.8 is at http://vectorlinux.osuosl.org/veclinux-5.8/testing/x/indic-ttf-fonts-20060123-i586-5vl58.tlz (http://vectorlinux.osuosl.org/veclinux-5.8/testing/x/indic-ttf-fonts-20060123-i586-5vl58.tlz)

Download that, then as root run:

installpkg indic-ttf-fonts-20060123-i586-5vl58.tlz

Your fonts will be installed on your system and X configured to recognize them automatically.  I expect the 5.9 package will be announced in a few days.
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 05, 2008, 07:57:43 am
Whow, I've  even  added that repo :)
Nice, very nice.
Thanks,
Thanks a lot!
Title: Re: How to get and install Indic fonts?
Post by: caitlyn on February 05, 2008, 02:27:03 pm
Adding the testing repo is a really, really BAD idea.  As the name implies these packages are still being tested.  Enabling testing and doing an update/upgrade is a great way to end up with a severely broken system sooner or later.  It's OK to enable it to install specific packages but be sure you disable it again afterwards.
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 06, 2008, 12:18:05 am
Removed!
Done.
Thanks for the warn!
Title: Re: How to get and install Indic fonts?
Post by: GrannyGeek on February 06, 2008, 02:47:40 pm
Adding the testing repo is a really, really BAD idea.  As the name implies these packages are still being tested.  Enabling testing and doing an update/upgrade is a great way to end up with a severely broken system sooner or later.

So don't do that! I like to see what's available and so for sure I have the testing repo enabled. If you look at the Common tab in GSlapt for a program you've highlighted, in the Source line it tells you where the file is located. If it says http://vectorlinux.osuosl.org/veclinux-5.9/testing/ or anything similar, that's a red flag to me to be sure I know where it's coming from and the implications of that (could be risky and might break things). I generally don't install updates from /testing unless I know for sure that I want something and am willing to assume any risks.

I ALWAYS check what repo files are coming from before I install them.
--GrannyGeek
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 09, 2008, 09:00:06 pm
No search needed.  The package for VL 5.8 is at http://vectorlinux.osuosl.org/veclinux-5.8/testing/x/indic-ttf-fonts-20060123-i586-5vl58.tlz (http://vectorlinux.osuosl.org/veclinux-5.8/testing/x/indic-ttf-fonts-20060123-i586-5vl58.tlz)

Download that, then as root run:

installpkg indic-ttf-fonts-20060123-i586-5vl58.tlz

Your fonts will be installed on your system and X configured to recognize them automatically.  I expect the 5.9 package will be announced in a few days.

Not all letters are rendered correctly, is it because that the package is from testing repo?
Title: Re: How to get and install Indic fonts?
Post by: caitlyn on February 10, 2008, 12:46:35 pm
No, it has nothing to do with the repo.  It has everything to do with the upstream developer.  The Indic fonts package is originally a Slackware package.  Sadly, while I did build the package I do not speak or read any Indian language so I had no way to know whether or not there are any issues with the fonts.  It's in testing so that someone like you could tell us if it is a good package or not.  I take it that it is NOT a good package.  Is that correct?
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 12, 2008, 07:54:19 am
Sorry for the late reply, was bugged in office on something :)

I think it would score 10 or 15 out of 100 marks. I could guess some of the words and some of them appear to be alien in the URL posted by me in this. You know something! I'm very very interested in linguistics (and also in open community) that made me search for Indic fonts.

May be I can (want to) help out in this, how to get involved?
Title: Re: How to get and install Indic fonts?
Post by: caitlyn on February 13, 2008, 01:10:23 pm
I've already reported that the package is no good and needs to be pulled.

How you can contribute depends entirely on what skills you have.  Go into the developer's forums, find something you can do, and volunteer.   That's all it takes.
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 14, 2008, 08:02:28 pm
Posts in the forum indicate that VL needs C C++ but I'm a java developer. So should explore what I really can do here. Can anyone post link of the dev forum, I could not get it.
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 15, 2008, 09:06:21 am
Ok Got the forum.
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 19, 2008, 12:56:34 pm
I've already reported that the package is no good and needs to be pulled.

How you can contribute depends entirely on what skills you have.  Go into the developer's forums, find something you can do, and volunteer.   That's all it takes.

Any idea on where the sources are for this package you've  said?
http://vectorlinux.osuosl.org/veclinux-5.8/testing/x/indic-ttf-fonts-20060123-i586-5vl58.tlz
Title: Re: How to get and install Indic fonts?
Post by: caitlyn on February 20, 2008, 01:56:57 pm
Try linuxpackages.net.  I believe that's where I found it.
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 21, 2008, 09:49:21 am
I'm in an idea to try what I can do to those sources, dont know how much helpful can I be :) but atleast I've started on it at some point.
Title: Re: How to get and install Indic fonts?
Post by: caitlyn on February 28, 2008, 03:40:31 pm
It turns out Vector Linux 5.9 Standard has Indic fonts built in.  Can you upgrade and check those out?  There may not be any need for more work on Indic fonts.
Title: Re: How to get and install Indic fonts?
Post by: Sivatheja on February 28, 2008, 06:17:37 pm
Yes, I'm in that lines only, the only problem is that I'll have to work in Linux which is brand new for me. So I even have 'Linux learning curve' in addition.