LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2005, 05:54 PM   #1
lp449
Member
 
Registered: Oct 2004
Location: Olsztyn, Poland
Distribution: Debian Squeeze / CentOS 6
Posts: 60

Rep: Reputation: 15
ttf fonts and GTK


Hello

I have just intalled some ttf fonts and they appear to be recognised by all of the applications, however there is one problem when I try to run any of GTK application I get the following message:

Code:
[ ~ ] $ gkrellm 

(gkrellm:3464): Pango-WARNING **: Cannot open font file for font Times New Roman 8 

(gkrellm:3464): Pango-WARNING **: Cannot open fallback font, nothing to do
I don't really know what's the problem and google doesn't say much about it ... could anyone help me please?
 
Old 02-26-2005, 09:39 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
ther are different ways i think to provide ttf support so i don't understand the big picture
i will suggest some stuff but you might need to recompile pango and/or gtk2

Pango-WARNING

first thing to try
set the environmental variable
GDK_USE_XFT=1
do it on an xterm (export GDK_USE_XFT=1) and start gkrellm from there and see if it works
if it does coll set that variable system wide and you are done

this might be the problem
when pango is compiled it needs to find xft library .pc file in the PKG_CONFIG_PATH
this would usually be /usr/X11R6/lib/pkgconfig
and in there would be xft.pc from your installation of X
i notice on my system pango also picked up freetype 2
so in /usr/lib/pkgconfig i have
pangoft2.pc
and
pangoxft.pc
and /usr/lib
libpangoft2
and
libpangoxft
both provide gtk access to ttf
if they are not there then i thing recompile pango and mane sure it gets ttf support
if they are there (or just one ? - not sure if that's possible)
if pango is using freetype2 then it is most likely setup to use the fontconfig package
do you have a file
/etc/fonts/local.conf ?

if so try this
wherever you put yout tt fonts
make sure the directory is in /etc/fonts/local.conf
like this (adjust paths)
lots of other stuff can be in there but you need the ttf <dir></dir> in there
Code:
<fontconfig>
<dir>/usr/X11R6/lib/X11/fonts/TTF</dir>
<dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
</fontconfig>
then run as root
fc-cache
then restart x and see if it's better
 
Old 02-26-2005, 11:05 PM   #3
idefinehell
LQ Newbie
 
Registered: Feb 2005
Distribution: FC3
Posts: 24

Rep: Reputation: 15
I will try 2 give u a simple solution

u can check the link http://www.mjmwired.net/resources/mj...-fc3.shtml#ttf

u can just install microsoft true type fonts from there

r else do :

cd /usr/X11R6/lib/X11/fonts/TTF/
cp /mnt/winc/Windows/Fonts/*.ttf .
mkfontscale
mkfontdir

Hope this helps and plz reply with u r result
 
  


Reply



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
TTF Fonts huno Linux - Software 5 12-22-2006 10:38 PM
Installation of .ttf fonts in X StonedZealot Linux - Software 5 04-04-2004 03:53 PM
TTF Fonts XPediTioN Slackware 8 08-16-2003 07:38 PM
Imported Windows TTF fonts work in GTK+ 1.2 but not 2.0 Locura Slackware 1 07-03-2003 08:53 PM
Any way to convert ttf fonts to linux console fonts? Glockage Linux - Software 7 12-30-2002 06:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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