LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-30-2004, 03:56 PM   #1
XPediTioN
Member
 
Registered: Jun 2003
Location: Illinois
Distribution: Slackware 9.1
Posts: 305

Rep: Reputation: 30
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
 
Old 04-30-2004, 05:13 PM   #2
wi_slacker
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 14

Rep: Reputation: 0
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.
 
Old 05-03-2004, 12:15 PM   #3
XPediTioN
Member
 
Registered: Jun 2003
Location: Illinois
Distribution: Slackware 9.1
Posts: 305

Original Poster
Rep: Reputation: 30
doesn't work man
 
Old 05-03-2004, 12:16 PM   #4
XPediTioN
Member
 
Registered: Jun 2003
Location: Illinois
Distribution: Slackware 9.1
Posts: 305

Original Poster
Rep: Reputation: 30
doesn't work. How do I get these fricking fonts to look right ?
 
Old 05-03-2004, 01:20 PM   #5
wi_slacker
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 14

Rep: Reputation: 0
what exactly do you mean "look right"? Pages aren't displaying certain fonts like Arial or Verdana? Are you using Kde or gnome?
 
Old 05-03-2004, 02:22 PM   #6
the who
Member
 
Registered: Feb 2004
Location: FRG, EU
Distribution: Slackware current
Posts: 51

Rep: Reputation: 15
Did you install a GTK2/XFT enabled build?

http://ftp.mozilla.org/pub/mozilla.o.../releases/0.8/
 
Old 05-03-2004, 05:49 PM   #7
XPediTioN
Member
 
Registered: Jun 2003
Location: Illinois
Distribution: Slackware 9.1
Posts: 305

Original Poster
Rep: Reputation: 30
I have the xft/gtk build. The fonts still look different.
 
Old 05-03-2004, 10:37 PM   #8
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
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
 
Old 05-07-2004, 05:09 AM   #9
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
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
 
Old 05-07-2004, 09:19 AM   #10
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

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


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
firefox fonts rino.caldelli Mandriva 2 10-23-2005 05:53 AM
fonts in Firefox lumiwa Linux - Newbie 2 09-17-2005 04:12 PM
Firefox & Fonts littlemidget Debian 9 04-21-2005 08:33 PM
mplayerplug-in not recognized in Konqueror, works in Firefox public Fedora 2 02-03-2005 12:51 AM
Firefox Fonts jeffman12 Linux - Software 6 06-07-2004 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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