LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2007, 11:30 AM   #1
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Rep: Reputation: 30
GTK 1.2 can't see some new fonts I've just installed


Ok. I need to do some greek and roman transcriptions on my wordprocessor, so I've installed some TrueType fonts I've imported from Windows.

I'm on Debian etch and I installed some time ago the MS webcore fonts from the Debian repos. They are installed at /usr/share/fonts/TrueType/mssttcorefonts. Now I've installed the new fonts at /usr/share/fonts/TrueType/msother. I've run the programs mkfontscale and mkfontdir in order to create fonts.scale and fonts.dir in that directory and then I've made Debian aware of the new fonts by doing fc-cache -fv.

The new fonts appear on the fc-list output, so, according so the tons of documents on the subject Google found for me, I've succeed installing the new fonts. Nice. I can see and use them on KDE, OpenOffice and can set GTK 2 to use them.

But GTK 1.2 is NOT able to see them! AAAAAAAAAAAAARGH! Damn! I mean, they don't get listed in gtk-theme-switch nor in xfontsel. I experienced this in the past (back when I installed MS fonts) and fixed it by installing x-ttcidfonts-conf, which seems to be stuff related to some kind of Debian font management. Now this doesn't work. I've dpkg-reconfigured x-ttcidfonts-conf and GTK 1.2 isn't aware of the new fonts.

Ok, not a big deal. My GTK 1.2 apps use the nice MS Tahoma font I use system wide, so I can live with the system as it is. But I sweared to myself that I'll get the fucking GTK 1.2 to recognise and even use the new fonts.

Now GTK is tougher than me and I surrender, so here I am posting for help

Cheers!

Last edited by pxumsgdxpcvjm; 02-05-2007 at 11:49 AM.
 
Old 02-05-2007, 01:00 PM   #2
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Original Poster
Rep: Reputation: 30
Man Google is so cool. He pointed me to this mail which contained the needed commands to do what i was asking for. Just in case someone struggles with the same: it seems that defoma should be made aware of the new fonts so GTK 1 seems them. These are the commands, according to the aforementioned mail:

1. Run this:

Code:
defoma-hints --no-question truetype  /path/to/fonts/*.ttf >/etc/defoma/hints/your.hints
2. If defoma-hints complains about missing FreeType.pm

Code:
apt-get install libft-perl
3. These do the real job:

Code:
defoma-hints --no-question truetype  /path/to/fonts/*.ttf >/etc/defoma/hints/your.hints
defoma-font register-all /etc/defoma/hints/your.hints
Result
 
  


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
tiny fonts with gtk crashmakerMX Debian 11 12-04-2005 09:23 AM
Fonts ok in GTK but not GTK2? bram2000 Linux - Software 3 04-19-2005 10:35 AM
ttf fonts and GTK lp449 Linux - Software 2 02-27-2005 12:05 AM
Non-readable fonts in GTK apps Clojster Debian 2 12-05-2004 05:11 AM
GTK-1.2 fonts madness PiRaSSiC Debian 3 07-20-2004 04:17 AM


All times are GMT -5. The time now is 08:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration