LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cant get true type fonts to work (https://www.linuxquestions.org/questions/linux-software-2/cant-get-true-type-fonts-to-work-408412/)

jarraneil 01-26-2006 08:15 PM

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.

320mb 01-26-2006 11:05 PM

you might have forgotten to issue this command.........
Code:

fc-cache
read this and try everything again..........

http://www.homepages.lu/pu/beautiful.html

bathory 01-27-2006 02:02 AM

You can use:
Code:

spadmin
to make your fonts available to Open Office.

jarraneil 01-27-2006 04:59 PM

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.

stress_junkie 01-27-2006 06:25 PM

$ locate spadmin
/opt/openoffice.org2.0/program/spadmin
/opt/openoffice.org2.0/program/spadmin.bin

jarraneil 01-27-2006 07:48 PM

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.

reddazz 01-27-2006 10:48 PM

Go to the directory you installed the fonts and remove the font.dir and font.scale file then do,
Code:

#mkfontdir && mkfontscale

jarraneil 01-28-2006 09:48 AM

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.

reddazz 01-28-2006 07:02 PM

I always run "mkfontdir" first and then "mkfontscale" last and it works everytime.

jarraneil 01-28-2006 07:39 PM

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

bathory 01-29-2006 03:31 AM

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.

jarraneil 01-29-2006 02:50 PM

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.


All times are GMT -5. The time now is 09:36 AM.