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 |
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.
|
doesn't work man :(
|
doesn't work. How do I get these fricking fonts to look right ?
|
what exactly do you mean "look right"? Pages aren't displaying certain fonts like Arial or Verdana? Are you using Kde or gnome?
|
|
I have the xft/gtk build. The fonts still look different.
|
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 |
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 |
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. |