LinuxQuestions.org
Help answer threads with 0 replies.
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 01-26-2006, 08:15 PM   #1
jarraneil
LQ Newbie
 
Registered: Oct 2005
Distribution: fedora core3
Posts: 8

Rep: Reputation: 0
cant get true type fonts to work


Running Fedora Core 3

I have created a directory /usr/local/fonts/ttf/

and copied all of the microsoft true type fonts from my Windows partition into this directory

I ran the following in this directory

#ttmkfdir > fonts.scale
#mkfontdir

and the "fonts.scale" and "fonts.dir" files were created correctly.

I then ran chkfontpath to add this directory to the search path and here is the output

# chkfontpath
Current directories in font path:
1: /usr/X11R6/lib/X11/fonts/misc:unscaled
2: /usr/X11R6/lib/X11/fonts/75dpi:unscaled
3: /usr/X11R6/lib/X11/fonts/100dpi:unscaled
4: /usr/X11R6/lib/X11/fonts/Type1
5: /usr/X11R6/lib/X11/fonts/Speedo
6: /usr/share/fonts/default/Type1
7:
8: /usr/local/fonts/ttf

If I run xfontsel I can see the fonts in there but they are not visible in OpenOffice. Also if I try Applications/Preferences/Font from the Gnome desktop, they are not visible there either

If I run xlsfonts I can see them in the output listing.

I tried upgrading my freetype package to include one with BCI support. Still no dice.

Anyone got any ideas. I am stumped.
 
Old 01-26-2006, 11:05 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
you might have forgotten to issue this command.........
Code:
fc-cache
read this and try everything again..........

http://www.homepages.lu/pu/beautiful.html
 
Old 01-27-2006, 02:02 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can use:
Code:
spadmin
to make your fonts available to Open Office.
 
Old 01-27-2006, 04:59 PM   #4
jarraneil
LQ Newbie
 
Registered: Oct 2005
Distribution: fedora core3
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the replies

I ran "fc-cache" but they are still not visible on the desktop.

I could not find the "spadmin" command or any reference to it.
 
Old 01-27-2006, 06:25 PM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
$ locate spadmin
/opt/openoffice.org2.0/program/spadmin
/opt/openoffice.org2.0/program/spadmin.bin
 
Old 01-27-2006, 07:48 PM   #6
jarraneil
LQ Newbie
 
Registered: Oct 2005
Distribution: fedora core3
Posts: 8

Original Poster
Rep: Reputation: 0
ok thanks. I found spadmin at the following location

/usr/lib/ooo-1.1/program/spadmin.bin

It just brings up a window to configure printers.

I am still in the same position i.e. the fonts are visible in the output from "xlsfonts" command and I can see them with the "xfontsel" command but they are not showing up on the desktop or any of my applications, including OpenOffice.
 
Old 01-27-2006, 10:48 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Go to the directory you installed the fonts and remove the font.dir and font.scale file then do,
Code:
#mkfontdir && mkfontscale
 
Old 01-28-2006, 09:48 AM   #8
jarraneil
LQ Newbie
 
Registered: Oct 2005
Distribution: fedora core3
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the reply. However it is still not working; this is driving me nuts.

In desperation, I have relocated my microsoft true type fonts to a different location i.e. in the same place as the others...

/usr/X11R6/lib/X11/fonts/TTF/

I have modified the chkfontpath to point to this new directory and here is the output of that command.

# chkfontpath
Current directories in font path:
1: /usr/X11R6/lib/X11/fonts/misc:unscaled
2: /usr/X11R6/lib/X11/fonts/75dpi:unscaled
3: /usr/X11R6/lib/X11/fonts/100dpi:unscaled
4: /usr/X11R6/lib/X11/fonts/Type1
5: /usr/X11R6/lib/X11/fonts/Speedo
6: /usr/X11R6/lib/X11/fonts/TTF
7: /usr/share/fonts/default/Type1
8:

I ran the mkfontdir and mkfontscale commands as suggested; still no dice. It seems that the order in which these commands are executed is important, since mkfontdir uses the content of the fonts.scale file (if it exists) and this file is generated by the mkfontscale command. If I run mkfontdir first it produces a file that just contains 0.
 
Old 01-28-2006, 07:02 PM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I always run "mkfontdir" first and then "mkfontscale" last and it works everytime.
 
Old 01-28-2006, 07:39 PM   #10
jarraneil
LQ Newbie
 
Registered: Oct 2005
Distribution: fedora core3
Posts: 8

Original Poster
Rep: Reputation: 0
yes I originally tried running the commands in the order you specify but it did not work. They are still visible in the output of xlsfonts but are not showing up on my desktop
 
Old 01-29-2006, 03:31 AM   #11
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I found spadmin at the following location
/usr/lib/ooo-1.1/program/spadmin.bin
It just brings up a window to configure printers.
There should be a spadmin command which brings up a window to configure printers, but it also has a button to add fonts in OO. For some reason Fedora does not include it in it's OO rpm. Take a look here to see what you can do.
 
Old 01-29-2006, 02:50 PM   #12
jarraneil
LQ Newbie
 
Registered: Oct 2005
Distribution: fedora core3
Posts: 8

Original Poster
Rep: Reputation: 0
finally got the fonts installed as an rpm from the following location

http://www.mjmwired.net/resources/mj...a-fc3.html#ttf

Even though this works nicley, I am still frustrated that I could not get then installed manually.

Thanks to everyone for trying to help.
 
  


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
True Type fonts RobKirchoff Linux - Software 1 10-20-2005 10:02 AM
True Type Fonts denning Linux - General 3 02-24-2005 07:48 PM
true type fonts flump Linux - Software 2 08-25-2003 10:01 AM
True Type Fonts XPediTioN Slackware 15 08-07-2003 12:35 PM
true type fonts!!! bigjohn Linux - Software 1 10-29-2002 07:38 AM

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

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