LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-01-2007, 07:34 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Installing Fonts on Debian


I am looking for a simple way to add nice new fonts to my Lenny / Testing system. I really did do a search and found a guide from 2000 which I did not feel sufficient using. Anyone have any ideas on what I should do? I downloaded a tarball of fonts and now have a lot of them but I am not sure where to put them or install them. I would assume there is a simple directory that houses fonts for the entire system so any one can use them but I can't find it...

Here is what I did have have so far...

Code:
cwilliams@tunafish:~/Desktop$ ls
gnome-terminal.desktop  msttcorefonts.tar.gz  ralusdebug.tar.gz
cwilliams@tunafish:~/Desktop$ tar xzf msttcorefonts.tar.gz 
cwilliams@tunafish:~/Desktop$ cd msttcorefonts/
cwilliams@tunafish:~/Desktop/msttcorefonts$ ls
Andale_Mono.ttf              Georgia.ttf
andalemo.ttf                 georgiaz.ttf
arialbd.ttf                  impact.ttf
arialbi.ttf                  Impact.ttf
Arial_Black.ttf              timesbd.ttf
Arial_Bold_Italic.ttf        timesbi.ttf
Arial_Bold.ttf               timesi.ttf
Arial_Italic.ttf             Times_New_Roman_Bold_Italic.ttf
ariali.ttf                   Times_New_Roman_Bold.ttf
arial.ttf                    Times_New_Roman_Italic.ttf
Arial.ttf                    Times_New_Roman.ttf
ariblk.ttf                   times.ttf
comicbd.ttf                  trebucbd.ttf
Comic_Sans_MS_Bold.ttf       trebucbi.ttf
Comic_Sans_MS.ttf            Trebuchet_MS_Bold_Italic.ttf
comic.ttf                    Trebuchet_MS_Bold.ttf
courbd.ttf                   Trebuchet_MS_Italic.ttf
courbi.ttf                   Trebuchet_MS.ttf
Courier_New_Bold_Italic.ttf  trebucit.ttf
Courier_New_Bold.ttf         trebuc.ttf
Courier_New_Italic.ttf       Verdana_Bold_Italic.ttf
Courier_New.ttf              Verdana_Bold.ttf
couri.ttf                    verdanab.ttf
cour.ttf                     Verdana_Italic.ttf
eula.htm                     verdanai.ttf
Georgia_Bold_Italic.ttf      verdana.ttf
Georgia_Bold.ttf             Verdana.ttf
georgiab.ttf                 verdanaz.ttf
Georgia_Italic.ttf           webdings.ttf
georgiai.ttf                 Webdings.ttf
georgia.ttf
 
Old 08-01-2007, 08:30 PM   #2
tiagoreul
LQ Newbie
 
Registered: Jun 2007
Location: Campina Grande, PB - Brazil
Distribution: Fedora 8
Posts: 20

Rep: Reputation: 0
Hi, Carlwill

You can't just drop .ttf fonts somewhere then they will work in linux,
you have to get a package

this links may help you:
http://penguinfonts.com/howto/debian.php
http://www.faqs.org/docs/Linux-mini/TT-Debian.html
http://tldp.org/HOWTO/Font-HOWTO/
 
Old 08-01-2007, 08:45 PM   #3
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 32
apt-get install msttcorefonts
 
1 members found this post helpful.
Old 08-01-2007, 09:01 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
You might also want to take a look at "Liberation Fonts."

Techy Stuff » Liberating Ubuntu...
http://techystuff.info/?p=62

Optimal Use of Fonts on Linux
http://www.tldp.org/HOWTO/Font-HOWTO/index.html


You could try this http://www.howtogeek.com/howto/ubunt...-ubuntu-linux/ and this http://ubuntuforums.org/showthread.php?t=343670. This might help with "smoothing" fonts.
 
Old 08-01-2007, 09:02 PM   #5
Zaskar
Member
 
Registered: Feb 2004
Location: NY
Distribution: Debian (Testing)
Posts: 219

Rep: Reputation: 30
I asked a question like this just a little while ago and got an answer that worked awesome

Quote:
Originally Posted by HappyTux
You can install the linux-libertine, ttf-bitstream-vera and msttcorefonts if you want the MS fonts then reconfigure to use either of these as your main fonts you would need contrib in your line you get the packages from in your sources.list to get the MS fonts.
just use apt-get or Synaptic and pick them out then reboot.

[edit] just tried the first link that showed a few second way to make those fonts smother too, very nice

Last edited by Zaskar; 08-01-2007 at 09:21 PM.
 
Old 08-02-2007, 08:38 AM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Which repo did you use to find them as I don't seem to have the correct "TESTING / LENNY" repo for some reason.
 
Old 08-02-2007, 09:14 AM   #7
Norb
LQ Newbie
 
Registered: Aug 2004
Location: The Derby
Distribution: Squeeze AMD64
Posts: 15

Rep: Reputation: 0
This should get you the msfonts, their in the contrib section. I just checked the packages on debian.org for testing

deb http://ftp.us.debian.org/debian/ testing main contrib non-free

or download here

http://packages.debian.org/cgi-bin/s...elease=contrib

Norb

Last edited by Norb; 08-02-2007 at 09:20 AM.
 
Old 08-02-2007, 09:32 AM   #8
Zaskar
Member
 
Registered: Feb 2004
Location: NY
Distribution: Debian (Testing)
Posts: 219

Rep: Reputation: 30
wait, you can have repos setup like that without haveing to make a seperate one for "main" "contrib" and "non-free" by just having them like that, seperated by spaces? Awesome
 
Old 08-02-2007, 10:53 AM   #9
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
Smile

if you want a guide for ttf font install:

Installing .ttf fonts in Debian/Ubuntu Linux locally

First i downloaded Manorama.ttf(india malayalam language daily) from
http://www.hackorama.com/malayalam/fonts/
then for present user,

$cd ~.fonts
$mkdir manorama
Copy Manorama.ttf font into this directory
then,

$ttmkfdir > fonts.dir
$ttmkfdir > fonts.scale
$mkfotnscale
$mkfontdir
$xset fp+ $HOME/.fonts/manorama/
$xset fp rehash
Now do an
$fc-cache -fv
Next step is to add the fontpath to our /etc/X11/xorg.conf last of font paths
like this:
> FontPath "/home/prakash/.fonts/manorama/"
Do a
> $fc-cache -fv

Now restart X and try watching in Firefox.
There are better ways to do this especially in redhat fedora..
http://www.thinkdigit.com/forum/show...?t=6029&page=2
^me only!
the Debian way/Defoma:

Debian-Installing Fonts using Defoma
In Debian, fonts can be managed by defoma, the Debian Font Manager. It
registers the Fonts to applications which tell defoma how to do this using a
plugin. Examples are gs, fontconfig and also x-ttcidfont-conf which in turn makes
the fonts available to X (see Tip 15). The advantage is that is sufficient to
register the fonts to defoma, which will take care of the rest of the configuration.
Here is a short walkthrough on how to do it:
First you copy all your TrueType fonts to a suitable directory, for example
/usr/local/share/fonts/truetype. Next you create a so called hints file for defoma
which contains informations about the fonts. You do this using the defoma-hints
program. Make sure that the libft-perl package is installed. After that you can
create the hints file:
Code:
defoma-hints -c --no-question truetype \
/usr/local/share/fonts/truetype/* \
> /etc/defoma/hints/ownfonts.hints
Now you register this file to defoma:
defoma-font register-all /etc/defoma/hints/ownfonts.hints
The last thing you have to do is to apply the new configuration. The quickest
way is to call
defoma-reconfigure
It updates the fonts database for all registered applications. To use the new fonts
in your current X session, run
Code:
xset fp rehash
fc-cache -fv

Last edited by deepclutch; 08-02-2007 at 10:55 AM.
 
Old 08-02-2007, 04:46 PM   #10
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by Zaskar
I asked a question like this just a little while ago and got an answer that worked awesome



just use apt-get or Synaptic and pick them out then reboot.

[edit] just tried the first link that showed a few second way to make those fonts smother too, very nice
Just followed these steps - once I reboot, should these fonts be available system wide or specifically on only Gnome applications? If I am not clear, can Iceweasel see these fonts?
 
Old 12-19-2007, 10:43 PM   #11
pAn1k
Member
 
Registered: Jun 2004
Location: Cala city
Distribution: Suse 10.0; Debian 5.0 (Lenny) Fluxbox
Posts: 240

Rep: Reputation: 30
You can just right click in konqueror and choose install.
 
Old 05-06-2012, 05:33 PM   #12
o2cool
LQ Newbie
 
Registered: Jan 2009
Location: Ewwtah
Distribution: Slackware -current
Posts: 27
Blog Entries: 1

Rep: Reputation: 0
if memory serves me correctly, with slack all i do is drop the fonts in the dir or in there own dir inside of the font dir and run fc-cache and boom done. i'll try it real quick and see
 
Old 05-06-2012, 05:41 PM   #13
o2cool
LQ Newbie
 
Registered: Jan 2009
Location: Ewwtah
Distribution: Slackware -current
Posts: 27
Blog Entries: 1

Rep: Reputation: 0
worked fine. with debian moved font to /usr/share/fonts/(your choice)/(your choice) and ran fc-cache. started gimp and the new font was there
 
Old 06-13-2012, 08:24 AM   #14
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Sorry if I am late -- I have Debian 'lenny', and I'd like to run defoma-hints, but the only answer I get is 'defoma-hints Can't locate FreeType.pm in @INC'. Freetype.pm used to come from package libft-perl, which doesn't exist anymore. So what's now?
 
  


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
installing ttf fonts in debian(etch).... deepclutch Debian 0 07-24-2006 03:01 PM
debian fonts setup r.stiltskin Debian 15 02-14-2006 11:05 PM
Fonts configuration in Debian J_dash Linux - Newbie 3 10-08-2005 09:36 AM
fonts in debian and gnome bujecas Debian 0 07-29-2005 11:54 AM
fonts in debian and xfs bujecas Debian 2 07-22-2005 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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