VectorLinux
April 17, 2014, 12:11:30 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1] 2 3
  Print  
Author Topic: How to get and install Indic fonts?  (Read 5566 times)
Sivatheja
Vectorite
***
Posts: 156



WWW
« 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.
« Last Edit: February 02, 2008, 11:07:57 pm by sivatheja » Logged

Full Linux Machine - Vector Linux 5.9 STD Gold, Intel - 1.79 GHz, 1Gb RAM, 60GB HDD
hata_ph
Packager
Vectorian
****
Posts: 3205


-- Just being myself --


« Reply #1 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......
Logged
Sivatheja
Vectorite
***
Posts: 156



WWW
« Reply #2 on: February 03, 2008, 04:53:25 am »

That link says about Ubuntu fonts, will that work for VL?
Logged

Full Linux Machine - Vector Linux 5.9 STD Gold, Intel - 1.79 GHz, 1Gb RAM, 60GB HDD
hata_ph
Packager
Vectorian
****
Posts: 3205


-- Just being myself --


« Reply #3 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....... Tongue
Logged
Sivatheja
Vectorite
***
Posts: 156



WWW
« Reply #4 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:
sudo apt-get install ttf-indic-fonts
sudo apt-get remove ttf-freefont

apt-get downloads fonts?
Code:
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:
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:
sudo apt-get install ttf-telugu-fonts

Best Regards,
Sivatheja
Logged

Full Linux Machine - Vector Linux 5.9 STD Gold, Intel - 1.79 GHz, 1Gb RAM, 60GB HDD
hata_ph
Packager
Vectorian
****
Posts: 3205


-- Just being myself --


« Reply #5 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
Logged
Sivatheja
Vectorite
***
Posts: 156



WWW
« Reply #6 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.
Logged

Full Linux Machine - Vector Linux 5.9 STD Gold, Intel - 1.79 GHz, 1Gb RAM, 60GB HDD
hata_ph
Packager
Vectorian
****
Posts: 3205


-- Just being myself --


« Reply #7 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.......
Logged
Sivatheja
Vectorite
***
Posts: 156



WWW
« Reply #8 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.
Logged

Full Linux Machine - Vector Linux 5.9 STD Gold, Intel - 1.79 GHz, 1Gb RAM, 60GB HDD
caitlyn
Packager
Vectorian
****
Posts: 2839



WWW
« Reply #9 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.
Logged

eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
VLocity Linux 7.0-rc1

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video
VL 7.0 Light
Sivatheja
Vectorite
***
Posts: 156



WWW
« Reply #10 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?
« Last Edit: February 04, 2008, 10:38:44 am by sivatheja » Logged

Full Linux Machine - Vector Linux 5.9 STD Gold, Intel - 1.79 GHz, 1Gb RAM, 60GB HDD
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #11 on: February 04, 2008, 02:01:29 pm »

uname -m will tell you Smiley
Logged
Sivatheja
Vectorite
***
Posts: 156



WWW
« Reply #12 on: February 04, 2008, 02:03:44 pm »

Mine is i686. Just started seeing Linuxpackages.org
Logged

Full Linux Machine - Vector Linux 5.9 STD Gold, Intel - 1.79 GHz, 1Gb RAM, 60GB HDD
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #13 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.
Logged
Sivatheja
Vectorite
***
Posts: 156



WWW
« Reply #14 on: February 04, 2008, 02:13:25 pm »

Thanks a million! This would multiply my hits in a search Smiley
Logged

Full Linux Machine - Vector Linux 5.9 STD Gold, Intel - 1.79 GHz, 1Gb RAM, 60GB HDD
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!