Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Adding Fonts?

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
19 posts • Page 1 of 1
Author
Message
ions
Apprentice
Apprentice
Posts: 235
Joined: Wed Jul 16, 2003 3:47 am

Adding Fonts?

  • Quote

Post by ions » Fri Jan 02, 2004 11:32 pm

I'm immensely confused. Let me preface this post with this statement: I have searched and done a lot of readong over the last couple days and it has only left me more confused than when I started. If that means I'm dumb then at least I'm not dumb for not searching first. ;)

What I want to do is simple. Install fonts. For everything. If an app uses fonts I want to add font options. Logically, to me at least, I assumed there would be a font directory and any apps that used fonts would look in there and say "Hey look! Fonts!" and everything would be fine.

I found dozens of threads and how-tos on adding fonts to Gnome, KDE, Flux, etc. but not to everything. So it's my assumption that you can't just add fonts. Is this true?

To me it appears that there are many different methods and font types that have to be installed into different applications in different ways.

I run a Web design/development company and fonts are an important part of my job. Really that shouldn't need explaining. In the least I want to be able to add fonts to Open Office and Gimp at will.

What I have done is emerged Freetype (no idea wth that does) & emerged corefonts which I thought was to add the MS corefonts yet I can not find them in any app. I've looked at how-tos that tell me to edit fiels I can't even find in my system.

I use Gentoo with Flux and like I said above I want to add fonts to in the very least Open Office and Gimp.
Top
vers_iq
Apprentice
Apprentice
Posts: 264
Joined: Sat May 18, 2002 8:41 pm

  • Quote

Post by vers_iq » Sat Jan 03, 2004 12:20 am

example:

Code: Select all

localsystem pts/0 truetype # pwd
/usr/X11R6/lib/X11/fonts/truetype
localsystem pts/0 truetype # ls
.             arialbd.ttf  comic.ttf    courbi.ttf   georgia.ttf   impact.ttf    timesbd.ttf  trebucbd.ttf  verdanab.ttf
..            arialbi.ttf  comicbd.ttf  couri.ttf    georgiab.ttf  tahoma.ttf    timesbi.ttf  trebucbi.ttf  verdanai.ttf
andalemo.ttf  ariali.ttf   cour.ttf     fonts.dir    georgiai.ttf  tahomabd.ttf  timesi.ttf   trebucit.ttf  verdanaz.ttf
arial.ttf     ariblk.ttf   courbd.ttf   fonts.scale  georgiaz.ttf  times.ttf     trebuc.ttf   verdana.ttf   webdings.ttf
localsystem pts/0 truetype # grep pala.ttf fonts.scale 
localsystem pts/0 truetype # fc-list | grep Pala       
localsystem pts/0 truetype # cp /mnt/int/WINNT/Fonts/pala* ./
localsystem pts/0 truetype # chmod 644 pala*
localsystem pts/0 truetype # ls
.             arialbd.ttf  comic.ttf    courbi.ttf   georgia.ttf   impact.ttf  palai.ttf     timesbd.ttf  trebucbd.ttf  verdanab.ttf
..            arialbi.ttf  comicbd.ttf  couri.ttf    georgiab.ttf  pala.ttf    tahoma.ttf    timesbi.ttf  trebucbi.ttf  verdanai.ttf
andalemo.ttf  ariali.ttf   cour.ttf     fonts.dir    georgiai.ttf  palab.ttf   tahomabd.ttf  timesi.ttf   trebucit.ttf  verdanaz.ttf
arial.ttf     ariblk.ttf   courbd.ttf   fonts.scale  georgiaz.ttf  palabi.ttf  times.ttf     trebuc.ttf   verdana.ttf   webdings.ttf
localsystem pts/0 truetype # mkfontdir 
localsystem pts/0 truetype # mkfontscale 
localsystem pts/0 truetype # grep pala.ttf fonts.scale 
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-iso8859-1
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-iso8859-2
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-iso8859-3
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-iso8859-4
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-iso8859-5
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-iso8859-9
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-iso8859-10
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-iso8859-13
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-iso8859-15
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-koi8-e
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-adobe-standard
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252
pala.ttf -linotype-Palatino Linotype-medium-r-normal--0-0-0-0-p-0-iso10646-1
localsystem pts/0 truetype # fc-list | grep Pala
Palatino Linotype:style=Italic
Palatino Linotype:style=Bold
Palatino Linotype:style=Regular
Palatino Linotype:style=Bold Italic
localsystem pts/0 truetype # /etc/init.d/xfs restart 
 * Stopping X Font Server...                                                                                                    [ ok ]
 * Scanning font directories...                                                                                                 [ ok ]
 * Indexing font directories...
 *   /usr/X11R6/lib/X11/fonts/truetype...                                                                                       [ ok ]
 * Updating FC cache...                                                                                                         [ ok ]
 * Starting X Font Server...                                                                                                    [ ok ] 
restart X

Most modern fonts are in truetype format now so the example above shows how to install Palatino font copied from Windows XP fonts dir. the last line /etc/init.d/xfs restart in only needed if you use X Font server. of course you can install fonts on any dirs as long as the font path is listed in /etc/X11/XF86Config or /etc/X11/fs/config if using xfs
"You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, the Swiss hold the America's cup, France accusing the US of arrogance and Germany doesn't want to go to war."
Top
deathdruid
Guru
Guru
User avatar
Posts: 343
Joined: Thu Jul 25, 2002 5:26 am
Location: Philadelphia, PA, USA

  • Quote

Post by deathdruid » Sat Jan 03, 2004 12:30 am

With fontconfig, most of the time you can just drop fonts into /usr/share/fonts and they get picked up. This works for Gnome and KDE apps. Unfortunately, OpenOffice still uses its own font configuration system. and you can add fonts through the pirinter setup utility. I believe that the devel version of Gimp uses fontconfig as well, and you could try emerging that.

In a nutshell, we are on our way there -- the infrastructure is ready, but some apps have to be rewritten to conform to it.
Top
ions
Apprentice
Apprentice
Posts: 235
Joined: Wed Jul 16, 2003 3:47 am

  • Quote

Post by ions » Sat Jan 03, 2004 4:19 am

After I posted this I found the thread on adding ttf to Open Office and have started trying that unfortunately I can't seem to get into the "spadmin" app that allows these changes.

vers_iq, I have no idea what to do with your post. I don't understand what to do with the information you provided. :oops:

Any idea where the fonts I emerged went when I emerged corefonts?
Top
deathdruid
Guru
Guru
User avatar
Posts: 343
Joined: Thu Jul 25, 2002 5:26 am
Location: Philadelphia, PA, USA

  • Quote

Post by deathdruid » Sat Jan 03, 2004 10:12 am

ions wrote: Any idea where the fonts I emerged went when I emerged corefonts?
/usr/X11R6/lib/X11/fonts/truetype
Top
vers_iq
Apprentice
Apprentice
Posts: 264
Joined: Sat May 18, 2002 8:41 pm

  • Quote

Post by vers_iq » Sat Jan 03, 2004 1:49 pm

ions wrote:After I posted this I found the thread on adding ttf to Open Office and have started trying that unfortunately I can't seem to get into the "spadmin" app that allows these changes.

vers_iq, I have no idea what to do with your post. I don't understand what to do with the information you provided. :oops:

Any idea where the fonts I emerged went when I emerged corefonts?
pwd, to show my current dir where the fonts will be installed
ls, grep, fc-list to show that i dont have palatino font installed
cp to copy my font from WinXP font dir
chmod to fix the fonts modes
ls to show the palatinos fonts are copied
mkfontdir, mkfontscale to register the font for X to recognise
grep, fc-list to show that Palatino already in font list
xfs restart restarts X font server
"You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, the Swiss hold the America's cup, France accusing the US of arrogance and Germany doesn't want to go to war."
Top
deathdruid
Guru
Guru
User avatar
Posts: 343
Joined: Thu Jul 25, 2002 5:26 am
Location: Philadelphia, PA, USA

  • Quote

Post by deathdruid » Sat Jan 03, 2004 4:32 pm

Or you could do what ions already did:

Code: Select all

# emerge msttcorefonts
and have all of that done for you, plus it's registered in portage.
Top
ions
Apprentice
Apprentice
Posts: 235
Joined: Wed Jul 16, 2003 3:47 am

  • Quote

Post by ions » Mon Jan 05, 2004 12:08 am

deathdruid wrote:Or you could do what ions already did:

Code: Select all

# emerge msttcorefonts
and have all of that done for you, plus it's registered in portage.
Well I emerged 'corefonts' not 'msttcorefonts'.

Can a ttf font be added to the corefonts directory? I'm trying to add Century Gothic and it's not working. At all.
Top
deathdruid
Guru
Guru
User avatar
Posts: 343
Joined: Thu Jul 25, 2002 5:26 am
Location: Philadelphia, PA, USA

  • Quote

Post by deathdruid » Mon Jan 05, 2004 1:49 am

Which directory? And if its an app that does not use fontconfig, you have to rerun ttmkfdir and mkfontscale.
Top
ions
Apprentice
Apprentice
Posts: 235
Joined: Wed Jul 16, 2003 3:47 am

  • Quote

Post by ions » Mon Jan 05, 2004 2:05 am

/usr/share/fonts/corefonts

Is the directory I am trying to add the new font to. I have added the italic, bold, and bold italic files but all that shows up is some yucky font. What do you mean by "rerun ttmkfdir and mkfontscale"? I never ran those after emerging corefonts. Is that something I need to do before the new font that I added will appear properly? What does this process entail?
Top
uglyb0b
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Sun Sep 07, 2003 8:18 pm
Contact:
Contact uglyb0b
Website

  • Quote

Post by uglyb0b » Mon Jan 05, 2004 2:22 am

all fonts in media-fonts (as far as I know) are merged into /usr/share/fonts. vers_iq wrote the best thing I've seen.
Blog.

Linux geek and Mac whore.
Top
ions
Apprentice
Apprentice
Posts: 235
Joined: Wed Jul 16, 2003 3:47 am

  • Quote

Post by ions » Mon Jan 05, 2004 2:33 am

Do you know where I'd find the vers_iq text on this? I did a search for 'fonts' and vers_iq as user but had many results. Any other terms I should add? Links?
Top
AmosMutke
Apprentice
Apprentice
User avatar
Posts: 235
Joined: Wed Dec 24, 2003 2:09 am
Location: Akita, Japan.

  • Quote

Post by AmosMutke » Thu Jan 22, 2004 4:52 am

Code: Select all

bash-2.05b# pwd
/usr/X11R6/lib/X11/fonts/truetype
bash-2.05b# ls -al geor*
-rw-r--r--    1 root     root       142964 Dec 30 02:18 georgia.ttf
-rw-r--r--    1 root     root       139584 Dec 30 02:18 georgiab.ttf
-rw-r--r--    1 root     root       156668 Dec 30 02:18 georgiai.ttf
-rw-r--r--    1 root     root       158796 Dec 30 02:18 georgiaz.ttf
bash-2.05b# fc-list | grep georgia
bash-2.05b# /usr/X11R6/bin/mkfontdir ./
bash-2.05b# /usr/X11R6/bin/mkfontscale ./
bash-2.05b# grep georgia.ttf fonts.scale
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-iso8859-1
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-iso8859-2
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-iso8859-3
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-iso8859-4
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-iso8859-5
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-iso8859-9
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-iso8859-10
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-iso8859-13
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-iso8859-15
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-koi8-e
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-adobe-standard
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252
georgia.ttf -microsoft-Georgia-medium-r-normal--0-0-0-0-p-0-iso10646-1
bash-2.05b# fc-list | grep Georgia
bash-2.05b# /etc/init.d/xfs restart
 * Stopping X Font Server...                                                                                  [ ok ]
 * Scanning font directories...                                                                               [ ok ]
 * Indexing font directories...
 *   /usr/X11R6/lib/X11/fonts/truetype...                                                                     [ ok ]
 * Updating FC cache...                                                                                       [ ok ]
 * Starting X Font Server...                                                                                  [ ok ]
bash-2.05b#
]


vers_iq, your instructions didn't work for me. I'm tring to add fonts for Gimp. I can successfully add ttf fonts for sodipodi by copy->paste to fonts:/// using nautilus.... any ideas?
Top
Dugan
n00b
n00b
Posts: 49
Joined: Sun Aug 10, 2003 12:48 am

  • Quote

Post by Dugan » Thu Jan 22, 2004 2:18 pm

http://forums.gentoo.org/viewtopic.php?t=127105
Top
OdinsDream
Veteran
Veteran
User avatar
Posts: 1057
Joined: Sat Jun 01, 2002 4:11 pm
Contact:
Contact OdinsDream
Website

  • Quote

Post by OdinsDream » Thu Jan 22, 2004 5:13 pm

I had some trouble with certain fonts being available in one application, and not in others. I resolved my problems by making the edits found in this thread:

http://forums.gentoo.org/viewtopic.php?t=85395

Here's a snip of what I did:

/etc/fonts/local.conf

Code: Select all

<?xml version="1.0"?> 
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> 
<!-- /etc/fonts/local.conf file for local customizations --> 
<fontconfig> 
<dir>/usr/X11R6/lib/X11/fonts/TTF</dir> 
<dir>/usr/share/fonts</dir> 
<dir>/usr/X11R6/lib/X11/fonts/local</dir> 
<dir>/usr/X11R6/lib/X11/fonts/misc</dir> 
<dir>/usr/X11R6/lib/X11/fonts/75dpi</dir> 
<dir>/usr/X11R6/lib/X11/fonts/100dpi</dir> 
<dir>/usr/X11R6/lib/X11/fonts/Type1</dir> 
<dir>/usr/X11R6/lib/X11/fonts/truetype</dir> 
<dir>/usr/X11R6/lib/X11/fonts/Speedo</dir> 
<dir>/usr/X11R6/lib/X11/fonts/artwiz</dir> 

<!-- 
  Enable sub-pixel rendering 
        <match target="font"> 
                <edit name="rgba" mode="assign"><const>rgb</const></edit> 
        </match> 
--> 
</fontconfig> 
After I made the file look like this (per several suggestions in the forum), all my applications were showing the same fonts.

Best of luck in your search for an answer!
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Top
ronmon
Veteran
Veteran
User avatar
Posts: 1043
Joined: Mon Apr 15, 2002 12:53 pm
Location: Key West, FL

  • Quote

Post by ronmon » Thu Jan 22, 2004 6:14 pm

I have a large collection of nearly 300 truetype fonts that I've been amassing over the years. They are all kept in /usr/share/fonts/trutype and meticulously backed up.

Then I make sure that they are seen in /etc/X11/XF86Config, /etc/XftConfig and /etc/X11/fs/config.
Top
AmosMutke
Apprentice
Apprentice
User avatar
Posts: 235
Joined: Wed Dec 24, 2003 2:09 am
Location: Akita, Japan.

  • Quote

Post by AmosMutke » Sat Jan 24, 2004 7:26 am

I dont' understand why "every program" seems to find the fonts just fine except for gimp.

I've followed all the treads with no luck.

anyone have any idea why Gimp would not find the fonts?
Top
va
n00b
n00b
User avatar
Posts: 4
Joined: Wed Jul 16, 2003 10:44 pm

I'm having similar problems

  • Quote

Post by va » Sat Jan 24, 2004 10:17 pm

I have loads of fonts installed, and I can see them if I try to change the font in my Gnome desktop preferences, but I can't see them in Open Office or the Gimp. I've tried everything I saw in every forum thread I saw about font problems, but I have had no success.
Top
Angrybob
Guru
Guru
User avatar
Posts: 575
Joined: Sat Apr 19, 2003 10:16 am

  • Quote

Post by Angrybob » Sun Jan 25, 2004 11:54 am

kde has a nifty little graphical font installer that lets you install them locally into your .fccache folder or systemwide, it might just be in the new 3.2.0_rc1 version though.
Top
Post Reply

19 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic