Help us-How to install fonts using defoma or the debian way.

Help with issues regarding installation of Debian

Help us-How to install fonts using defoma or the debian way.

Postby praka123 » 2007-07-24 08:51

Hello Friend,
We know the normal methods for installing .ttf fonts via installing them to ~/.fonts directory for single user or making dir in /usr/share/fonts/truetype/
and doing fc-cache -fv.
But Debian has its own tools for managing fonts-Defoma(fontconfig-config)
Will some Debian user tried how to register fonts using defoma and the debian way.
thanks,
praka123 :)
Debian (Testing/Unstable)
User avatar
praka123
 
Posts: 183
Joined: 2007-06-23 08:11
Location: Cochin,India

Postby izar » 2007-07-24 10:00

I got this information from http://www.andreas-janssen.de/index.html
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:

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

xset fp rehash

Although the information is for Sarge, I have tried it out with Etch and it works flawlessly.
I hope this helps.
User avatar
izar
 
Posts: 1715
Joined: 2007-01-01 18:34
Location: Euskal Herria

Postby praka123 » 2007-07-25 13:44

thanks for help.will try and post here :)
Actually, This is the Post:

http://www.andreas-janssen.de/debian-ti ... tml.en#a15
Last edited by praka123 on 2011-08-07 17:38, edited 1 time in total.
Debian (Testing/Unstable)
User avatar
praka123
 
Posts: 183
Joined: 2007-06-23 08:11
Location: Cochin,India

Re: Help us-How to install fonts using defoma or the debian

Postby praka123 » 2011-05-22 21:16

In My Debian Testing System, ttmkfdir is not available. perhaps no more available in repository. I have few fonts placed in a directory /usr/share/fonts/truetype/userfonts .

I installed as per above method as per #2nd post. and it is working. I was wondering if there is any other resource available regarding installing fonts(*ttf especially) using defoma.

There is a app "font-manager" available in Debian repository : http://en.alessiotreglia.com/articles/m ... t-manager/


Earlier I used to install fonts as:
Code: Select all
ttmkfdir > fonts.dir
ttmkfdir > fonts.scale
xset fp+ /path/to/fontdir
xset fp rehash && fc-cache -fv
Debian (Testing/Unstable)
User avatar
praka123
 
Posts: 183
Joined: 2007-06-23 08:11
Location: Cochin,India

Re: Help us-How to install fonts using defoma or the debian

Postby izar » 2011-05-23 14:57

ttmkfdir is available for sid, so you may want to try installing it from the sid repositories or just wait until it hits testing.
User avatar
izar
 
Posts: 1715
Joined: 2007-01-01 18:34
Location: Euskal Herria

Re: Help us-How to install fonts using defoma or the debian

Postby praka123 » 2011-05-23 15:54

ttmkfdir being removed from sid repo also(I've apt-pinning testing&sid-with less priority). ttmkfdir available in Sid are not for amd64 or i386 arch.

I am looking for a definitive guide on defoma, especially to install,register,unregister,purge fonts. :D
Debian (Testing/Unstable)
User avatar
praka123
 
Posts: 183
Joined: 2007-06-23 08:11
Location: Cochin,India

Re: Help us-How to install fonts using defoma or the debian

Postby eric1959 » 2011-05-23 16:02

I've always put my own fonts in ~/.fonts. What's wrong with this method ?
Debian Bits And Snips
Squeeze, Gnome, amd64, Intel Core i3-530, Geforce GT330
eric1959
 
Posts: 1299
Joined: 2008-12-15 13:17
Location: Amsterdam


Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable