View previous topic :: View next topic |
Author |
Message |
Bosnian[X] n00b
Joined: 12 Jul 2002 Posts: 66 Location: Sweden, Malmö
|
Posted: Tue Jul 15, 2003 10:11 am Post subject: Can't get TT fonts to show in Mozilla Firebird. help?? |
|
|
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 |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Tue Jul 15, 2003 10:34 am Post subject: Re: Can't get TT fonts to show in Mozilla Firebird. help?? |
|
|
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
in the location bar to access all mozilla settings on the fly. |
|
Back to top |
|
|
Bosnian[X] n00b
Joined: 12 Jul 2002 Posts: 66 Location: Sweden, Malmö
|
Posted: Tue Jul 15, 2003 10:54 am Post subject: |
|
|
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 |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Tue Jul 15, 2003 11:37 am Post subject: |
|
|
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 |
|
|
Bosnian[X] n00b
Joined: 12 Jul 2002 Posts: 66 Location: Sweden, Malmö
|
Posted: Tue Jul 15, 2003 12:09 pm Post subject: |
|
|
kallamej: Yes, i have re-started X but thanx for all the help. Cheers m8 |
|
Back to top |
|
|
adastra Tux's lil' helper
Joined: 16 Oct 2002 Posts: 106
|
Posted: Wed Jul 16, 2003 3:54 am Post subject: |
|
|
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 |
|
|
jcmkk Tux's lil' helper
Joined: 19 May 2002 Posts: 124
|
Posted: Wed Jul 16, 2003 5:28 am Post subject: |
|
|
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 |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Wed Jul 16, 2003 7:58 am Post subject: |
|
|
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 |
|
Back to top |
|
|
adastra Tux's lil' helper
Joined: 16 Oct 2002 Posts: 106
|
Posted: Wed Jul 16, 2003 6:26 pm Post subject: |
|
|
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 |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Wed Jul 16, 2003 7:16 pm Post subject: |
|
|
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 |
|
|
|