Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get TT fonts to show in Mozilla Firebird. help??
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Bosnian[X]
n00b
n00b


Joined: 12 Jul 2002
Posts: 66
Location: Sweden, Malmö

PostPosted: Tue Jul 15, 2003 10:11 am    Post subject: Can't get TT fonts to show in Mozilla Firebird. help?? Reply with quote

Hello everyone,

Im having this tiny problem. I have installed MozillaFirebird and i i have using GEntoo for a long time and never had this problem with fonts. I have my guide how to install TrueType fonts under X and so far it worked perfect. Until now.

i have copied my TT fonts from my Win_C partition.
Code:

cp /mnt/win_c/WINDOWS/fonts/*.ttf /usr/X11R6/lib/X11/fonts/truetype


and after that i run this command in same dir where i have truetype fonts copied

Code:

ttmkfdir -o fonts.scale


later on i edited /etc/X11/XF86Config and this how the font section looks like:

Code:

# This loads the Type1 and FreeType font modules
    Load        "type1"
    Load        "speedo"
    Load        "freetype"
#   Load        "xtt"
   

    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/truetype/"
    FontPath   "/usr/share/fonts/freefont/"
    FontPath   "/usr/X11R6/lib/X11/fonts/sharefont/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"   



after that i edited unix.js file in /etc/lib/MozillaFirebird/defaults/pref folder.


Code:


// TrueType
pref("font.FreeType2.enable", true);
pref("font.freetype2.shared-library", "libfreetype.so.6");
// if libfreetype was built without hinting compiled in
// it is best to leave hinting off
pref("font.FreeType2.autohinted", true);
pref("font.FreeType2.unhinted", true);
// below a certian pixel size anti-aliased fonts produce poor results
pref("font.antialias.min", 10);
pref("font.embedded_bitmaps.max", 1000000);
pref("font.scale.tt_bitmap.dark_text.min", 64);
pref("font.scale.tt_bitmap.dark_text.gain", "0.1");
// sample prefs for TrueType font dirs
pref("font.directory.truetype.1", "/usr/X11R6/lib/X11/fonts/truetype");
pref("font.directory.truetype.2", "/usr/share/fonts/freefonts");
pref("font.directory.truetype.3", "/usr/X11R6/lib/X11/fonts/sharefonts");
//pref("font.directory.truetype.1", "/u/sam/tt_font1");
//pref("font.directory.truetype.2", "/u/sam/tt_font2");
//pref("font.directory.truetype.3", "/u/sam/tt_font3");
pref("font.FreeType2.printing", true);




..everything is set as before. I have no ideas what to do more. Truetype fonts are not showing in pref tab in MozillaFirebird.

Fonts look perfect in menus but webpages are not looking good. Not even close as before.


Any ideas???

P.S

Before i have used Xfree 4.2 so this is my first time with Xfree 4.3. I installed clean system with the latest Xfree so i didn't updated by emerge -u
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Tue Jul 15, 2003 10:34 am    Post subject: Re: Can't get TT fonts to show in Mozilla Firebird. help?? Reply with quote

Bosnian[X] wrote:

after that i edited unix.js file in /etc/lib/MozillaFirebird/defaults/pref folder.

Code:

pref("font.directory.truetype.2", "/usr/share/fonts/freefonts");
pref("font.directory.truetype.3", "/usr/X11R6/lib/X11/fonts/sharefonts");


There are some typos above: should be freefont and sharefont. What do you have in
Code:
/etc/fonts/fonts.conf
/etc/fonts/local.conf

My local.conf reads
Code:
<?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/X11R6/lib/X11/fonts/truetype</dir>
        <dir>/usr/share/fonts/freefont</dir>
        <dir>/usr/X11R6/lib/X11/fonts/sharefont</dir>
 
<!--
  Enable sub-pixel rendering
        <match target="font">
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match>
-->
</fontconfig>


You may also try to type
Code:
about:config

in the location bar to access all mozilla settings on the fly.
Back to top
View user's profile Send private message
Bosnian[X]
n00b
n00b


Joined: 12 Jul 2002
Posts: 66
Location: Sweden, Malmö

PostPosted: Tue Jul 15, 2003 10:54 am    Post subject: Reply with quote

Yes, it was typos and corrected but still TT fonts are not showing in Pref tab and my

Code:

/etc/fonts/local.conf


is same as yours but still no TT fonts. i do not have TTF folder just truetype folder.
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Tue Jul 15, 2003 11:37 am    Post subject: Reply with quote

Ok, it seems you have covered the same bases as I then (unless you have forgotten to restart X and so on). Can't think of anything more right now ...
Back to top
View user's profile Send private message
Bosnian[X]
n00b
n00b


Joined: 12 Jul 2002
Posts: 66
Location: Sweden, Malmö

PostPosted: Tue Jul 15, 2003 12:09 pm    Post subject: Reply with quote

kallamej: Yes, i have re-started X ;) but thanx for all the help. Cheers m8
Back to top
View user's profile Send private message
adastra
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2002
Posts: 106

PostPosted: Wed Jul 16, 2003 3:54 am    Post subject: Reply with quote

I have done everything you have done, well mostly, and I have the exact opposite problem. I have beautiful AA fonts in web pages but menus are ugly crap fonts. Maybe we can team up and get a good looking Firebird.

Putting the directory "/usr/X11R6/lib/X11/fonts/truetype" directly into /etc/fonts/fonts.conf did the trick for me. Until I did that, I could not choose the truetype fonts I wanted in the preferences window. Some people say you should also run fc-cache but I don't think that does anything. There are so many font files and servers and configurations that I can't keep them all straight.

I see in that local.conf posted that the sub-pixel rendering had not been uncommented. They say if you have a laptop you should uncomment that, though, it didn't seem to make any difference on my display.
Back to top
View user's profile Send private message
jcmkk
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2002
Posts: 124

PostPosted: Wed Jul 16, 2003 5:28 am    Post subject: Reply with quote

Bonsian[X], try this thread for your problem.

adastra, you probably don't have gtk2 in your use variables in /etc/make.conf . If you don't, add it then re-emerge firebird.
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Wed Jul 16, 2003 7:58 am    Post subject: Reply with quote

jcmkk wrote:
Bonsian[X], try this thread for your problem.

FWIW, I have reset all the mozilla config entries to their defaults and everything seems to work anyway. Nevertheless, if you use xfs you may also want to check out
Code:
/etc/X11/fs/config
Back to top
View user's profile Send private message
adastra
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2002
Posts: 106

PostPosted: Wed Jul 16, 2003 6:26 pm    Post subject: Reply with quote

You know, I just checked, and I don't appear to have the gtk2 flag in the USE variables. I swear, on the grave of my mother, that I put that flag in there some time ago. Could an update to portage have wiped it out?
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Wed Jul 16, 2003 7:16 pm    Post subject: Reply with quote

adastra wrote:
You know, I just checked, and I don't appear to have the gtk2 flag in the USE variables. I swear, on the grave of my mother, that I put that flag in there some time ago. Could an update to portage have wiped it out?

Most certainly. Do be careful when you let etc-update merge new and old config files. If you choose the wrong option the old one with your changes will be overwritten.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum