Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Galeon, Mozilla, and messed up fonts ...
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
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Sat Jan 11, 2003 9:12 am    Post subject: Galeon, Mozilla, and messed up fonts ... Reply with quote

Okay up untill two days ago my fionts looked fine. In fact i think they looked perfectly. After and emerge -u world that updated mozilla, galeon, and xfree among other things my fonts look like shit. I think ive narrowed it down to mozilla not seeing my ms fonts. When i open up mozilla and go to select fonts I dont see the long list of font family's and such that i used too. Just your basic names(about 12 of em). The fonts look okay but not as good as the used to. Now I open galeon and the fonts look even worse! When i go to change fonts in galeon it looks like it see's all the MS fonts and i can choose them but they still look ugly. Like they are using the same fonts and not the MS ones.I know that a merge of mozilla will wipe out the unix.js file and i re-edited it. It looks like this ...
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.8");
// sample prefs for TrueType font dirs
pref("font.directory.truetype.1", "/usr/X11R6/lib/X11/fonts/TTF");
pref("font.directory.truetype.2", "/usr/X11R6/lib/X11/fonts/truetype");
pref("font.directory.truetype.3", "/usr/X11R6/lib/X11/fonts/microsoft");
//pref("font.directory.truetype.3", "/u/sam/tt_font3");

And as you can see those are the correct paths to the font dirs ...
Code:

#~: ls /usr/X11R6/lib/X11/fonts/
100dpi/  CID/  Speedo/  Type1/     encodings/     local/      misc/      util/
75dpi/   PEX/  TTF/     cyrillic/  fonts.cache-1  microsoft/  truetype/
#~:

Does anyone know what might be wrong or have the same problem? Also after the update galeon is using tons and tons of memory. On top it looks normal but when i start up galeon the memory meter doubles! after about 5 minutes or so it goes down some. WTF is up with that?
Back to top
View user's profile Send private message
OpelBlitz
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 229
Location: Chicago, Illinois

PostPosted: Mon Jan 13, 2003 7:15 pm    Post subject: Reply with quote

Same here, my fonts look like ass in Mozilla after updating it to 1.2.1. I have the same settings in my unix.js file.
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Mon Jan 13, 2003 7:38 pm    Post subject: Reply with quote

Did you add your font path to /etc/fonts/fonts.conf?
Back to top
View user's profile Send private message
OpelBlitz
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 229
Location: Chicago, Illinois

PostPosted: Mon Jan 13, 2003 7:43 pm    Post subject: Reply with quote

Haha, never mind -- all good now
Back to top
View user's profile Send private message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Mon Jan 13, 2003 8:56 pm    Post subject: Reply with quote

I took a look at that file and it had /usr/X11R6/lib/X11/fonts/ as one of the dirs ... That would add all my fonts correct? I mean thats where all my fonts are installed to. Or do i have to do each one seperately as well?
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jan 14, 2003 1:26 am    Post subject: Reply with quote

It should be enough to have this directory. If you do:
Code:

fc-list

do you see the missing fonts? If not, what are the permissions on the microsoft subdirectory and the files in it?
BoBB wrote:
I took a look at that file and it had /usr/X11R6/lib/X11/fonts/ as one of the dirs ... That would add all my fonts correct? I mean thats where all my fonts are installed to. Or do i have to do each one seperately as well?
Back to top
View user's profile Send private message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Tue Jan 14, 2003 3:24 am    Post subject: Reply with quote

They arent really missing, If i go into font selection in galeon i can see them and select them but they dont look good like they did before. They are missing in mozilla though. There used to be a huge long list in the mozilla drop down with font class's and family's etc... Now theres just a lits of like 15-20 basic font names. Like "arial" "times new roman" etc...
Back to top
View user's profile Send private message
spanommers
n00b
n00b


Joined: 13 Jan 2003
Posts: 26

PostPosted: Tue Jan 14, 2003 4:26 am    Post subject: Reply with quote

darn, i used to have this problem, but i forget how i got rid of it :-/ i remember trying a lot of stuff, including generating the Xftcache files...wait, i think what did it was editing the xft config file...in the /etc/X11 directory. make sure those paths include all your font paths w/ ttf files.

well, i shouldn't say i really got rid of the problem because mozilla still crashes everytime i try to use tahoma.
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jan 14, 2003 5:17 am    Post subject: Reply with quote

I don't use galeon much... mozilla now uses Xft2 and uses only the fonts provided by it. This apparently does not include compressed pcf fonts and the like; hence the list is primarily ttf fonts and sundry extras. On my box the only font other than TTF ones I can see in mozilla (at a glance) are:

  • Bitstream Charter (the font files are uncompressed)
  • Fixed (I uncompressed these pcf files for konsole to work correctly)


If you include "moznoxft" in your USE flags, it should revert to old behavior.

BoBB wrote:
They arent really missing, If i go into font selection in galeon i can see them and select them but they dont look good like they did before. They are missing in mozilla though. There used to be a huge long list in the mozilla drop down with font class's and family's etc... Now theres just a lits of like 15-20 basic font names. Like "arial" "times new roman" etc...
Back to top
View user's profile Send private message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Tue Jan 14, 2003 5:43 am    Post subject: Reply with quote

Thats not really what i meant naan yaar. LIke now it says "Times New Roman" but before it said "monotype-times new roman-12-*-*-*-*-*-*" or something like that. And there were different types of times new roman fonts.
Back to top
View user's profile Send private message
contigab
n00b
n00b


Joined: 18 Dec 2002
Posts: 57
Location: Italy

PostPosted: Tue Jan 14, 2003 8:41 am    Post subject: Reply with quote

I have a similar problem. I can see all my fonts, and all my emerged applications works correctly... except Mozilla. Mozilla got some really huge and terrible fonts in its interface. I run Xft2.0 which doesn't use anymore XftCache nor FontPath from XF86Config. But does anyone know how could I change default interface fonts in Mozilla? I know I could install it with "moznoxft" but it doesn't seem to me a good solution.
_________________
Linux! :)
Back to top
View user's profile Send private message
spanommers
n00b
n00b


Joined: 13 Jan 2003
Posts: 26

PostPosted: Tue Jan 14, 2003 9:09 am    Post subject: Reply with quote

i was actually referring to /etc/X11/XftConfig, not XF86Config.

i read somewhere that mozilla's chrome is defined by the proportional font (so if proportional is set to sans-serif, and sans-serif is set to times, your chrome is in times).

this thread may help if you want to override this behavior: https://forums.gentoo.org/viewtopic.php?t=26524
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jan 14, 2003 1:05 pm    Post subject: Reply with quote

Yes. This is also due to its using Xft2/fontconfig. The list of fonts it gives you now is essentially what is returned by fc-list. You will see that the list is something like the output of:
Code:

fc-list|sed 's#\(.*\):.*#\1#'|sort -u
BoBB wrote:
Thats not really what i meant naan yaar. LIke now it says "Times New Roman" but before it said "monotype-times new roman-12-*-*-*-*-*-*" or something like that. And there were different types of times new roman fonts.
Back to top
View user's profile Send private message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Tue Jan 14, 2003 9:58 pm    Post subject: Reply with quote

So how can i get mozilla to see my microsoft fonts?
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jan 15, 2003 1:37 am    Post subject: Reply with quote

You don't see the XLFD font names anymore seemingly. The one that says "Times New Roman" should be the monotype font. As of freetype-2.1.2-r2, compressed fonts are not handled correctly. So, the fonts you see would be mainly the "microsoft" ttf ones. If you run "fc-cache" and then look at the font.cache-1 files in the /usr/lib/X11/fonts/* directories, you can see the fontconfig names for fonts and the files that correspond to them.
BoBB wrote:
So how can i get mozilla to see my microsoft fonts?
Back to top
View user's profile Send private message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Wed Jan 15, 2003 1:47 am    Post subject: Reply with quote

Ok that makes sense since the fonts look fine in mozilla when i select them, but how do i get the same fonts in galeon? When i cope the lines from the prefs.js file galeon segfaults whenever i try to view the settings. But the fonts look good.
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jan 15, 2003 1:54 am    Post subject: Reply with quote

You shouldn't have to edit unix.js anymore. Actually, doing it probably has no or little effect in terms of fonts due to this move to fontconfig. The antialias min/max in this file, e.g., do nothing right now.

Not sure about galeon. Sorry.
BoBB wrote:
Ok that makes sense since the fonts look fine in mozilla when i select them, but how do i get the same fonts in galeon? When i cope the lines from the prefs.js file galeon segfaults whenever i try to view the settings. But the fonts look good.
Back to top
View user's profile Send private message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Wed Jan 15, 2003 1:58 am    Post subject: Reply with quote

prefs.js not unix.js ... the file in ~/.galeon/mozilla/galeon/ that stores what fonts to use. right now it says ...

Code:

user_pref("font.name.cursive.x-western", "Comic Sans MS");
user_pref("font.name.fantasy.x-western", "Trebuchet MS");
user_pref("font.name.monospace.x-western", "Courier New");
user_pref("font.name.sans-serif.x-western", "Arial");
user_pref("font.name.serif.x-western", "Times New Roman");

And it looks like it did before i updated. However it does segfault whenever I try to edit preferences. Probably because its trying to read the fonts from the pref.js file in the normal format with -class-font name-charset and its not there heh.
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