niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Distributions » Debian
How do I install a non packaged font in Debian?
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
Angelina Carlton
*nix forums addict


Joined: 06 Mar 2005
Posts: 59

PostPosted: Thu Jul 20, 2006 9:20 pm    Post subject: Re: How do I install a non packaged font in Debian? Reply with quote

Eduard Bloch <edi@gmx.de> writes:

Quote:
#include <hallo.h
xlsfonts uses the old X11 font system. And mkfontdir creates index files
needed for it but only for the old pcf fonts. You want to use mkttfdir
instead, from the fttools package.

Eduard.

Hi, I have installed the package fttools and removed the directories in
/usr/share/fonts and /usr/local/share/fonts and now am simply working
from a ~/.fonts to keep things from getting confusing.

I downloaded two other fonts from the same site to make sure it wasnt a
problem specific to that font.

[orchid@morcheeba:~/.fonts]% l
total 240
-rw-r--r-- 1 orchid orchid 1072 2005-12-12 23:56 Licence.txt
-rw-r--r-- 1 orchid orchid 65996 2004-12-30 16:39 PixelCarnageMono.ttf
-rw-r--r-- 1 orchid orchid 6924 2006-07-20 16:19
PixelCarnageMono.ttf.zip
-rw-r--r-- 1 orchid orchid 45232 2005-03-18 11:59 ProggyCleanCE.ttf
-rw-r--r-- 1 orchid orchid 41208 2005-03-17 18:47 ProggyClean.ttf
-rw-r--r-- 1 orchid orchid 15325 2006-07-18 17:49 ProggyClean.ttf.zip
-rw-r--r-- 1 orchid orchid 34396 2005-12-13 00:09 ProggySmall.ttf
-rw-r--r-- 1 orchid orchid 6490 2006-07-20 16:19 proggysmall.ttf.zip
-rw-r--r-- 1 orchid orchid 290 2005-03-18 20:01 Readme.txt

I then did mkttfdir -ejwo .fonts
and then sudo fc-cache -fv

fc-cache created ~/.fonts/fonts.cache-1
and outputted fc-cache: "/home/orchid/.fonts": caching, 4 fonts, 0 dirs
which seems right as I have 4 fonts now.

the fonts.cache-1 file itself contains four entries similar to:

"PixelCarnageMono.ttf" 0"PixelCarnageMonoTT:style=Regular:slant=0:weight=80:wid
th=100:spacing=100:foundry=unknown:index=0:outline=True:scalable=True:charset= |
Quote:
^(||>^1!|>^1!|>^1!|>^1!|>^1!|>^1!P0oWQ:lang=aa|ast|ay|bi|br|ch|da|de|en|es|eu|f
j|fo|fur|fy|gd|gl|gv|ho|ia|id|ie|io|is|it|lb|mg|nb|nds|nl|nn|no|oc|om|pt|rm|sma|

smj|so|sq|sv|sw|tn|ts|vo|wa|xh|yap|zu:fontversion=65536:fontformat=TrueType"

But xlsfonts still show no fonts from my ~/.fonts folder.
I am trying to use the fonts in urxvt and in emacs if that matters. What
is frustrating is that on the previous Sid install, I had installed
these fonts wihout a problem and forgotten to document how I did it Smile

--
-----Angelina Carlton-----
orchid on irc.freenode.net
brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
H.S.
*nix forums Guru Wannabe


Joined: 21 Aug 2005
Posts: 179

PostPosted: Thu Jul 20, 2006 8:10 pm    Post subject: Re: How do I install a non packaged font in Debian? Reply with quote

Angelina Carlton wrote:
Quote:
"H.S." <hs.samix@gmail.com> writes:

IIRC, I tried this and it seemed to have worked for ttf fonts for my user:
1. Copy the ttf font file to a .fonts directory in your home
directory.
2. Give the command fc-cache -fv in a terminal. Once this command
is finished, restart your application, e.g. Firefox, and you should be
able to see the newly installed font.

You don't have to be root for the above to work.


If you want system wide fonts, you need to copy the ttf fonts in
/usr/loca/share/fonts directory, then give the 'mkfontdir' command
within that dir as root, and then give the 'fc-cache -fv' command as
root.


I created a directory in /usr/local/share/fonts called proggy, did a
mkfontdir and issued fc-cache -fv as root, so the font will be
systemwide.
It spat out alot of output including:
fc-cache: "/usr/local/share/fonts": caching, 0 fonts, 1 dirs
fc-cache: "/usr/local/share/fonts/proggy": caching, 2 fonts, 0 dirs

So it appears it added the fonts? But xlsfonts still wont find them, I
even added: FontPath "/usr/local/share/fonts/proggy" to my xorg.conf
but to no avail.


I did this a while back so don't recall what other stuff I needed to
do. I hope the above will work, if not please let me know and I will
try to dig out more info.


Thanks, I appreciate any help getting this to work!



Please have a look at the fonts installations part of this also:
http://www.svenkrahn.de/linux/my_debian/ar01s04.html

->HS



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
H.S.
*nix forums Guru Wannabe


Joined: 21 Aug 2005
Posts: 179

PostPosted: Thu Jul 20, 2006 8:00 pm    Post subject: Re: How do I install a non packaged font in Debian? Reply with quote

Angelina Carlton wrote:
Quote:
"H.S." <hs.samix@gmail.com> writes:

IIRC, I tried this and it seemed to have worked for ttf fonts for my user:
1. Copy the ttf font file to a .fonts directory in your home
directory.
2. Give the command fc-cache -fv in a terminal. Once this command
is finished, restart your application, e.g. Firefox, and you should be
able to see the newly installed font.

You don't have to be root for the above to work.


If you want system wide fonts, you need to copy the ttf fonts in
/usr/loca/share/fonts directory, then give the 'mkfontdir' command
within that dir as root, and then give the 'fc-cache -fv' command as
root.


I created a directory in /usr/local/share/fonts called proggy, did a
mkfontdir and issued fc-cache -fv as root, so the font will be
systemwide.
It spat out alot of output including:
fc-cache: "/usr/local/share/fonts": caching, 0 fonts, 1 dirs
fc-cache: "/usr/local/share/fonts/proggy": caching, 2 fonts, 0 dirs

So it appears it added the fonts? But xlsfonts still wont find them, I
even added: FontPath "/usr/local/share/fonts/proggy" to my xorg.conf
but to no avail.


I did this a while back so don't recall what other stuff I needed to
do. I hope the above will work, if not please let me know and I will
try to dig out more info.


Thanks, I appreciate any help getting this to work!


I tried that same things on my machine as well. xlsfont does not list
the fonts I have in /usr/local/share/fonts or in $HOME/.fonts. But
applications can see those fonts (e.g. Firefox). How about you, does
Firefox see those fonts?

BTW, I do not have /usr/local/share/fonts in xorg.conf file. I am not
very sure about the method of installing the fonts, but I will look
further if this doesn't work.

->HS



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Eduard Bloch
*nix forums Guru Wannabe


Joined: 04 Mar 2005
Posts: 134

PostPosted: Thu Jul 20, 2006 7:10 pm    Post subject: Re: How do I install a non packaged font in Debian? Reply with quote

#include <hallo.h>
* Angelina Carlton [Thu, Jul 20 2006, 02:25:05PM]:
Quote:
"H.S." <hs.samix@gmail.com> writes:
IIRC, I tried this and it seemed to have worked for ttf fonts for my user:
1. Copy the ttf font file to a .fonts directory in your home
directory.
2. Give the command fc-cache -fv in a terminal. Once this command
is finished, restart your application, e.g. Firefox, and you should be
able to see the newly installed font.

You don't have to be root for the above to work.


If you want system wide fonts, you need to copy the ttf fonts in
/usr/loca/share/fonts directory, then give the 'mkfontdir' command
within that dir as root, and then give the 'fc-cache -fv' command as
root.

I created a directory in /usr/local/share/fonts called proggy, did a
mkfontdir and issued fc-cache -fv as root, so the font will be
systemwide.
It spat out alot of output including:
fc-cache: "/usr/local/share/fonts": caching, 0 fonts, 1 dirs
fc-cache: "/usr/local/share/fonts/proggy": caching, 2 fonts, 0 dirs

So it appears it added the fonts? But xlsfonts still wont find them, I
even added: FontPath "/usr/local/share/fonts/proggy" to my xorg.conf
but to no avail.

xlsfonts uses the old X11 font system. And mkfontdir creates index files
needed for it but only for the old pcf fonts. You want to use mkttfdir
instead, from the fttools package.

Eduard.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Angelina Carlton
*nix forums addict


Joined: 06 Mar 2005
Posts: 59

PostPosted: Thu Jul 20, 2006 6:40 pm    Post subject: Re: How do I install a non packaged font in Debian? Reply with quote

"H.S." <hs.samix@gmail.com> writes:
Quote:
IIRC, I tried this and it seemed to have worked for ttf fonts for my user:
1. Copy the ttf font file to a .fonts directory in your home
directory.
2. Give the command fc-cache -fv in a terminal. Once this command
is finished, restart your application, e.g. Firefox, and you should be
able to see the newly installed font.

You don't have to be root for the above to work.


If you want system wide fonts, you need to copy the ttf fonts in
/usr/loca/share/fonts directory, then give the 'mkfontdir' command
within that dir as root, and then give the 'fc-cache -fv' command as
root.

I created a directory in /usr/local/share/fonts called proggy, did a
mkfontdir and issued fc-cache -fv as root, so the font will be
systemwide.
It spat out alot of output including:
fc-cache: "/usr/local/share/fonts": caching, 0 fonts, 1 dirs
fc-cache: "/usr/local/share/fonts/proggy": caching, 2 fonts, 0 dirs

So it appears it added the fonts? But xlsfonts still wont find them, I
even added: FontPath "/usr/local/share/fonts/proggy" to my xorg.conf
but to no avail.

Quote:
I did this a while back so don't recall what other stuff I needed to
do. I hope the above will work, if not please let me know and I will
try to dig out more info.

Thanks, I appreciate any help getting this to work!

--
-----Angelina Carlton-----
orchid on irc.freenode.net
brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
H.S.
*nix forums Guru Wannabe


Joined: 21 Aug 2005
Posts: 179

PostPosted: Thu Jul 20, 2006 5:40 am    Post subject: Re: How do I install a non packaged font in Debian? Reply with quote

Angelina Carlton wrote:
Quote:
Hi everyone,

I would like to install the first font on this page:
http://www.proggyfonts.com/index.php?menu=download

My system is Debian Sid, xorg, with defoma and x-ttcidfont-conf
installed.

I created a folder 'proggy' in /usr/share/fonts/truetype/
and unzipped the files there, then ran the command mkfontdir
[orchid@morcheeba:/usr/share/fonts/truetype/proggy]% ll
total 100K
-rw-r--r-- 1 root root 822 2006-07-18 18:00 fonts.cache-1
-rw-r--r-- 1 root root 2 2006-07-18 17:58 fonts.dir
-rw-r--r-- 1 orchid orchid 45K 2005-03-18 11:59 ProggyCleanCE.ttf
-rw-r--r-- 1 orchid orchid 41K 2005-03-17 18:47 ProggyClean.ttf
[orchid@morcheeba:/usr/share/fonts/truetype/proggy]% file ProggyClean*
ProggyCleanCE.ttf: TrueType font data
ProggyClean.ttf: TrueType font data

I then ran: sudo xset fp rehash
but the fonts do not show up in xlsfonts, not even after restarting the
x server. Is the a proper way to add non packaged fonts to a Debian
system?



IIRC, I tried this and it seemed to have worked for ttf fonts for my user:
1. Copy the ttf font file to a .fonts directory in your home
directory.
2. Give the command fc-cache -fv in a terminal. Once this command is
finished, restart your application, e.g. Firefox, and you should be able
to see the newly installed font.

You don't have to be root for the above to work.


If you want system wide fonts, you need to copy the ttf fonts in
/usr/loca/share/fonts directory, then give the 'mkfontdir' command
within that dir as root, and then give the 'fc-cache -fv' command as root.

I did this a while back so don't recall what other stuff I needed to do.
I hope the above will work, if not please let me know and I will try to
dig out more info.

->HS




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Angelina Carlton
*nix forums addict


Joined: 06 Mar 2005
Posts: 59

PostPosted: Thu Jul 20, 2006 1:00 am    Post subject: How do I install a non packaged font in Debian? Reply with quote

Hi everyone,

I would like to install the first font on this page:
http://www.proggyfonts.com/index.php?menu=download

My system is Debian Sid, xorg, with defoma and x-ttcidfont-conf
installed.

I created a folder 'proggy' in /usr/share/fonts/truetype/
and unzipped the files there, then ran the command mkfontdir
[orchid@morcheeba:/usr/share/fonts/truetype/proggy]% ll
total 100K
-rw-r--r-- 1 root root 822 2006-07-18 18:00 fonts.cache-1
-rw-r--r-- 1 root root 2 2006-07-18 17:58 fonts.dir
-rw-r--r-- 1 orchid orchid 45K 2005-03-18 11:59 ProggyCleanCE.ttf
-rw-r--r-- 1 orchid orchid 41K 2005-03-17 18:47 ProggyClean.ttf
[orchid@morcheeba:/usr/share/fonts/truetype/proggy]% file ProggyClean*
ProggyCleanCE.ttf: TrueType font data
ProggyClean.ttf: TrueType font data

I then ran: sudo xset fp rehash
but the fonts do not show up in xlsfonts, not even after restarting the
x server. Is the a proper way to add non packaged fonts to a Debian
system?


--
-----Angelina Carlton-----
orchid on irc.freenode.net
brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
The time now is Thu Dec 04, 2008 2:34 am | All times are GMT
navigation Forum index » *nix » Linux » Distributions » Debian
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:57 am
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:56 am
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:56 am
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:55 am
No new posts RS6000 43p/140 AIX 4.3 new install - am stuck! remllov99x AIX 0 Tue Aug 21, 2007 11:07 pm

Secured Loans | MPAA | Free Advertising | Synchronization fast and easy | Fast Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.6494s ][ Queries: 20 (0.5325s) ][ GZIP on - Debug on ]