LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2005, 07:05 AM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Command for font-installation


Does anybody know what commandline-tool can be used for font installation?
I want to make sure I have the same fonts in any distro (including Windows), I realize I can't just copy the fonts to <fontdir>, they have to be installed. I remember some year ago I read an article about this but I can't find it?
It has to be a command-line tool, I want to write a script usable in any Linux.
 
Old 04-26-2005, 08:21 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
If you are talking about Truetype fonts, simply copy them to ~/.fonts. Create the directory if it does not exist already. Run fc-cache -v to update the fonts cache.

If you're talking about PCF/BDF fonts, create a directory for the fonts (or use ~/.fonts for them as well), run mkfontdir in that directory when the fonts are in place. Then execute xset +fp /path/to/the/fonts_dir and then xset fp rehash. You can have the xset commands in a startup commands file if you wish (I use ~/.xsession).


Håkan
 
Old 04-26-2005, 09:00 AM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
Mainly Truetype and Type1.
Don't really know what PCF/BDF is (I know there are plenty used by default). Reading Scribus tips, they talk about Type1 being the best, or good Truetype can also be used. No mentioning of PCF/BDF so I thought I'll leave them out.
I'm mainly using Scribus and OpenOffice, for other apps there are no real need for synchronizing fonts.
fc-cache seems good, hope it works for Type1?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Two Beginner questions: Installation and Fuzzy Font treble54 Linux - Newbie 6 08-29-2005 09:03 PM
help! bash command prompt font/color change richiangpan9 Linux - Newbie 3 04-24-2005 12:34 PM
command line font size poiuytrewq Linux - Newbie 8 09-21-2004 03:57 AM
font installation befuddled Linux - Newbie 0 02-17-2004 08:59 PM
Font installation - regd. ravichella General 1 10-31-2003 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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