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

Notices


Reply
  Search this Thread
Old 07-16-2004, 05:38 AM   #1
blueser
Member
 
Registered: Oct 2003
Location: Rio de Janeiro, Brazil
Distribution: Fedora Core 5
Posts: 76

Rep: Reputation: 15
Truetype and GTK 1.x on FC2


Hi,

I have recently upgraded FC1 to FC2 (woo-hoo! ), and all seems to be going well -- except for TTF support.

I have gone through the instructions here, but I can't seem to be able to use Windows TTF with GTK 1.x apps. The very same procedure works flawlessly on FC1.

All steps seem to succeed, all proper files seem to be on the right place etc. 'xlsfonts' lists windows fonts without complaints. However, fonts appear ugly, as you can see by these screenshots from Sylpheed:

Sylpheed (FC1)
Sylpheed (FC2)

First one is how it looks on FC1 (I took it from my computer at work, but it was working like that on my home computer as well). I am using Verdana font, and it looks just like it should. Second one shows how it is appearing on FC2 -- this font is definitely not Verdana.

Sylpheed is configured to use this font on both versions:

-microsoft-verdana-medium-r-normal-*-*-90-*-*-p-*-iso8859-1

I am running Xorg at 100x100dpi, using nvidia drivers. /etc/X11/fs/config has:

[...]
catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,
/usr/X11R6/lib/X11/fonts/75dpi:unscaled,
/usr/X11R6/lib/X11/fonts/100dpi:unscaled,
/usr/X11R6/lib/X11/fonts/misc,
/usr/X11R6/lib/X11/fonts/Type1,
/usr/X11R6/lib/X11/fonts/Speedo,
/usr/share/fonts/ttf,
/usr/X11R6/lib/X11/fonts/TTF,
/usr/X11R6/lib/X11/fonts/Windows,
/usr/share/fonts/default/Type1,
/usr/lib/openoffice/share/fonts/truetype

# in 12 points, decipoints
default-point-size = 120

# 100 x 100 and 75 x 75
#default-resolutions = 75,75,100,100
default-resolutions = 100,100,75,75
[...]

fonts.scale and fonts.dir have been created on /usr/share/fonts/ttf with:

ttmkfdir > fonts.scale
mkfontdir

I can't see what's wrong... any specific Xorg procedure I should do? Anyone else can confirm successfully enabling MS fonts with GTK 1.x on FC2? (please note: Verdana and other MS TTF are working fine for GTK2).

TIA

Andre
 
Old 07-16-2004, 05:20 PM   #3
blueser
Member
 
Registered: Oct 2003
Location: Rio de Janeiro, Brazil
Distribution: Fedora Core 5
Posts: 76

Original Poster
Rep: Reputation: 15
Hi Boby,

thks for the links. Unfortunately, they did not help... but, I already expected that, because you're using Fedora Core 1, and I know things work just fine on FC1 (I had used until last week, when I finally upgraded to FC2). I am using the msfonts RPM you pointed, though.

However, I would appreciate if you could send me by email the output of

xlsfonts | grep microsoft

I would like to compare it with mine, just as a sanity check.

My email address is acosta--AT--ar--DOT--microlink--DOT--com--DOT--br.

TIA

Andre
 
Old 07-16-2004, 08:28 PM   #4
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Hi!

I'm using FC2 ,forgot to change that thing left
Now I'm not at home, but I'll send you an email as soon as possible.

Cheers, Boby!
 
Old 07-16-2004, 08:47 PM   #5
blueser
Member
 
Registered: Oct 2003
Location: Rio de Janeiro, Brazil
Distribution: Fedora Core 5
Posts: 76

Original Poster
Rep: Reputation: 15
Hi Boby

wow, now you gave me some hope!

I will wait for your msg to compare things... please, send me also the output of:

rpm -qa gtk+\*

If you use apt-cache, please include also the output of:

apt-cache policy gtk+

My gtk+ packages are from apt.kde-redhat.org, and not 'stock' GTK+ packages:

~ rpm -qa gtk+\*
gtk+-1.2.10-30.fdr.3.2
gtk+-devel-1.2.10-30.fdr.3.2

~ apt-cache policy gtk+
gtk+:
Installed: 1:1.2.10-30.fdr.3.2
Candidate: 1:1.2.10-30.fdr.3.2
Version Table:
*** 1:1.2.10-30.fdr.3.2 0
500 ftp://apt.kde-redhat.org kde-redhat/2/stable pkglist
100 RPM Database
1:1.2.10-29.1.1 0
500 http://ayo.freshrpms.net fedora/linux/2/i386/core pkglist

I don't know if these RPMs could have anything wrong with them...

Thks a lot for helping me with this

Best,

Andre
 
Old 07-17-2004, 05:12 PM   #6
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
email send )

try this too:

download cabextract
here
then "rpm -ivh cabextract-1.0-1.1.fc2.dag.i386.rpm"

then download msttcorefonts from here , then "rpmbuild -bb msttcorefonts-1.3-4.spec", then install with "rpm -Uvh /usr/src/redhat/RPMS/noarch/msttcorefonts*rpm"

to have the fonts now available restart XFS with "/sbin/service xfs reload" and restart also all browsers, openoffice, and so on.......


hope I could help you!
boby
 
Old 07-18-2004, 09:14 AM   #7
blueser
Member
 
Registered: Oct 2003
Location: Rio de Janeiro, Brazil
Distribution: Fedora Core 5
Posts: 76

Original Poster
Rep: Reputation: 15
Hi Boby,

thks a lot for the help. I am right now going through the (lengthy) process of downgrading gtk+ and gtk2 (and many others the depend on them) to the "stock" versions, since I will not be able to be sure if gtk+ is the culprit without doing this.

The output of xlsfonts | grep microsoft matched mine (I was affraid of those "0-0-0-0-p-0"), so I guess ttmkfdir+mkfontdir+xfs did their job just fine.

After finishing the downgrade, I will try the procedure you described, even though it should (theoretically) be equivalent to what I did here by hand, but...

Stay tuned for further info

Again, thks for the help.

Best,

Andre
 
Old 07-18-2004, 10:50 AM   #8
blueser
Member
 
Registered: Oct 2003
Location: Rio de Janeiro, Brazil
Distribution: Fedora Core 5
Posts: 76

Original Poster
Rep: Reputation: 15
Hi Boby,

It didn't work I downgraded everything (GTK 1.x, GTK 2 and related packages), restarted everything, but TTF weirdness still happens

(I even installed the msttcorefonts RPM as suggested, but it is essentially the same set of fonts as the msfonts RPM you pointed earlier (which is already installed), so I removed it.

... I guess I'll have to go deeper on this (fontconfig, freetype). One question: did you upgrade from FC1 or did you do a fresh install of FC2?

Thks again,

Andre
 
Old 07-18-2004, 03:43 PM   #9
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Hi!

I did a fresh install of FC2. sorry 'couse it didn't helped. I don't know what to suggest. Maybe someone else can help...

Cheers, Boby!
 
Old 07-19-2004, 09:23 AM   #10
blueser
Member
 
Registered: Oct 2003
Location: Rio de Janeiro, Brazil
Distribution: Fedora Core 5
Posts: 76

Original Poster
Rep: Reputation: 15
Hi Boby,

don't feel sorry for it, you did help me narrow me down the problem. Thank you very much for spending some time on this. Right now, I am inclined to say the upgrade might have had something to do with it... (I remember reading some reports of upgrades leaving garbage behind).

As I said, I will try to get some help from the freetype ML. I will post back here any results (good or bad) I get.

Best,

Andre
 
  


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
installing GTk+ on FC2 keerthi Fedora 3 11-16-2005 02:06 AM
Ugly Truetype font in GTK apps kvzrock Linux - General 0 02-08-2004 10:35 PM
Truetype SnowSurfAir Linux - Software 0 07-31-2003 05:41 PM
Truetype fonts wonderpun Linux - Software 2 10-09-2002 11:47 AM
TrueType Fonts under X B_Balazs Linux - Newbie 1 07-25-2001 08:07 PM

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

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