Operating System - HP-UX
1820160 Members
2786 Online
109620 Solutions
New Discussion юеВ

Re: How to add more fonts in UNIX

 
SOLVED
Go to solution
Reynaldo Torres
Advisor

How to add more fonts in UNIX

Please I need help.
Does anyone knows how to add more fonts in this particular directory. [/usr/lib/X11/fonts/type1.st/typefaces]
-r--r--r-- 1 bin bin 75363 May 30 1996 UTBI____.pfa
-r--r--r-- 1 bin bin 72834 May 30 1996 UTB_____.pfa
-r--r--r-- 1 bin bin 74892 May 30 1996 UTI_____.pfa
-r--r--r-- 1 bin bin 72354 May 30 1996 UTRG____.pfa
-r--r--r-- 1 bin bin 126064 May 30 1996 cour.pfa
-r--r--r-- 1 bin bin 126868 May 30 1996 courb.pfa
-r--r--r-- 1 bin bin 125201 May 30 1996 courbi.pfa
-r--r--r-- 1 bin bin 122124 May 30 1996 couri.pfa
-rw-r--r-- 1 bin bin 2158 Sep 7 1999 fonts.dir
-r--r--r-- 1 bin bin 1468 May 30 1996 fonts.scale
In onother words this direcoty has the following fonts.
Utopia, Courier, and I would like to see if I could add like Helvetica, Times, Times-Roman, Century School etc. Kindly if you know how I could add them let me know Please.

Thank you so much.

Reynaldo Torres.
torresr@hydroaire.com
Reynaldo Torres
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: How to add more fonts in UNIX

Reynaldo,
If you have them in bit map form, then you need to convert them to pcf with bdftopcf
Check the man page for mkfontdir. I guess
it is what you are lookinig for. Use xset to refresh the font path you can view if the fonts are listed with xlsfonts command.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Reynaldo Torres
Advisor

Re: How to add more fonts in UNIX

No the file is a postscript and I need to convert in .pdf using different types of fonts due to not all the report and forms will be the same therefore I need to have varies types of fonts configured in UNIX because it looks under the directory I have mentioned in the previous message.

Thanks for your help if you have any other ways that I could use let me know.

Regards,

Reynaldo.
Reynaldo Torres
Sridhar Bhaskarla
Honored Contributor

Re: How to add more fonts in UNIX

I am not sure if I quite understand the problem. Fonts like schoolbook, helvetica etc should be already there as default. You can do an 'xlsfonts' and check the fonts available. The directory is not necessarily be the one you mentioned. If you need additional fonts, you need to get the corresponding PCF or SNF files, you can place them anywhere and add the directory to the font database with mkfontdir.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Reynaldo Torres
Advisor

Re: How to add more fonts in UNIX

Could you be more specific on how to add these fonts or create another directory and maybe create some kind of link to the one I am running now.

Thank you much,

Reynaldo.
Reynaldo Torres
Sridhar Bhaskarla
Honored Contributor
Solution

Re: How to add more fonts in UNIX

OK. If your scripts/program is looking in this directory for font files, you can do one work around.

Copy the pcf files from /usr/lib/X11/fonts/iso_8859.1/100dpi/helv* into the directory where it is looking. These
are helvetica font files.

I am still unclear about how your conversion is doing. If it has to convert the ps file to pdf, it needs to get the fonts from the font database of the system not from the individual font files.


-Sri
You may be disappointed if you fail, but you are doomed if you don't try