LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Fonts not recognized by Firefox (https://www.linuxquestions.org/questions/slackware-14/fonts-not-recognized-by-firefox-176442/)

XPediTioN 04-30-2004 03:56 PM

Fonts not recognized by Firefox
 
I copied my TTF fonts to /usr/X11R6/lib/X11/fonts/TTF and after that as root I did fc-cache and mkfontdir but the fonts are not recognized by firefox. What do I have to do so they are recognized?

XPediTioN

wi_slacker 04-30-2004 05:13 PM

I don't know if this works in KDE but for GNOME just make a ".fonts" directory in your home folder, copy all your fonts there, and restart x.

XPediTioN 05-03-2004 12:15 PM

doesn't work man :(

XPediTioN 05-03-2004 12:16 PM

doesn't work. How do I get these fricking fonts to look right ?

wi_slacker 05-03-2004 01:20 PM

what exactly do you mean "look right"? Pages aren't displaying certain fonts like Arial or Verdana? Are you using Kde or gnome?

the who 05-03-2004 02:22 PM

Did you install a GTK2/XFT enabled build?

http://ftp.mozilla.org/pub/mozilla.o.../releases/0.8/

XPediTioN 05-03-2004 05:49 PM

I have the xft/gtk build. The fonts still look different.

Shade 05-03-2004 10:37 PM

I do the same as said above. Put all my specific fonts into ~/.fonts
And then I run

mkfontscale .
mkfontdir .
fc-cache -fv

And all should be good to go after restarting the Xserver.
I'm not sure if that's the right order.

--Shade

Nichole_knc 05-07-2004 05:09 AM

fix them fonts....
 
First get yourself a directory full of TrueType fonts....
either from;
http://sourceforge.net/projects/corefonts/

or
a windows box/partition
c:/windows/fonts

and here is a script to help you out to set the fonts up for use...

#! /bin/sh

# ttfont-config
# TrueType font install utility for Slackware
# beta - 04-19-2004

# By Nichole_knc, posted to LinuxQuestions.org
# use as you wish
# With your favorite editor
# enter your source directory and your target directory below and save
# this script as ttfont-config and chmod 755 then execute ./ttfont-config
#
# You will need to edit the XF86Config in /etc/X11 and add
# your SYSFONTSDIR if it is a new directory to the Section "Files" to allow programs
# that are not fontconfig capable to use your new fonts.

# default font directories/locations; X11=/usr/X11R6/lib/X11/fonts
# /usr/share/fonts

TTFONTDIR="Your Source Directory HERE!!!"
SYSFONTSDIR="Your Destination Directory HERE"
ENCODE="/usr/X11R6/lib/X11/fonts/encodings/"

# ! IMPORTANT! Uncomment this line if the $SYSFONTDIR is to be a new font directory.
# mkdir "SYSFONTSDIR"

cp -R -a -p "$TTFONTDIR"*.ttf "$SYSFONTSDIR"
cp -R -a -P "$TTFONTDIR"*.TTF "$SYSFONTSDIR"
cd "$SYSFONTSDIR"
chmod 644 *.ttf *.TTF
mkfontscale "$SYSFONTSDIR"
mkfontdir -e "$ENCODE" "$SYSFONTSDIR"
fc-cache "$SYSFONTSDIR"
xset +fp "SYSFONTSDIR"
xset fp rehash

Azmeen 05-07-2004 09:19 AM

Click this link for the definitive guide to getting your TTF fonts working properly in GTK apps like Firefox :)


All times are GMT -5. The time now is 03:46 AM.