Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] A weird issue with fonts in Firefox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
GetCool
Guru
Guru


Joined: 23 Nov 2003
Posts: 324
Location: Madison, Wisconsin

PostPosted: Mon Jan 23, 2006 4:31 am    Post subject: [Solved] A weird issue with fonts in Firefox Reply with quote

I followed the Xorg and Fonts HOWTO on the Gentoo Wiki site to get antialiased fonts in Xorg and Firefox. Everything looks great, except for this weird problem with fonts in Firefox...

For the most part, fonts are displayed properly. However, when I go to certain web sites, the font sizes are sometimes inconsistent. What I mean by this is that if you look at a given block of text (that is supposed to be all the same font), some of the characters are bigger, and some are smaller. Here's an example:

This is an example.

I can usually fix this problem when it happens by fiddling with the global text size options in Firefox (under the "View" menu); if I make the text one increment bigger or one increment smaller, that usually fixes the specific page I'm looking at. But then other pages may not look right any longer...

I tried messing with my Firefox font options; this is what they currently are:

Proportional: Serif Size: 16
Serif: Bitstream Vera Serif
Sans-serif: Bitstream Vera Sans
Monospace: Bitstream Vera Sans Mono Size: 12
Display resolution: System setting Minimum font size: 10
[X] Allow pages to choose their own fonts.

I've played around with every option, and nothing fixes this 100% of the time. Some pages will look normal while others won't.

If it helps at all, here are the relevant sections of my xorg.conf:

Code:
Section "Module"
   Load      "dbe"
   SubSection "extmod"
      Option      "omit xfree86-dga"
   EndSubSection
   Load      "type1"
   Load      "freetype"
   Load      "glx"
EndSection

Section "Files"
   RgbPath      "/usr/X11R6/lib/X11/rgb"
   FontPath   "/usr/share/fonts/misc:unscaled"
   FontPath   "/usr/share/fonts/Type1"
   FontPath   "/usr/share/fonts/TTF"
   FontPath   "/usr/share/fonts/corefonts"
   FontPath   "/usr/share/fonts/freefont"
   FontPath   "/usr/share/fonts/sharefonts"
   FontPath   "/usr/share/fonts/terminus"
   FontPath   "/usr/share/fonts/ttf-bitstream-vera"
   FontPath   "/usr/share/fonts/unifont"
   FontPath   "/usr/share/fonts/75dpi:unscaled"
   FontPath   "/usr/share/fonts/100dpi:unscaled"
EndSection


If you have any ideas, I'd appreciate hearing them. Thanks.


Last edited by GetCool on Mon Jan 23, 2006 8:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Mon Jan 23, 2006 9:48 am    Post subject: Reply with quote

Take a look at this thread or search the howto you posted above for "displaysize". :wink:
Back to top
View user's profile Send private message
GetCool
Guru
Guru


Joined: 23 Nov 2003
Posts: 324
Location: Madison, Wisconsin

PostPosted: Mon Jan 23, 2006 8:52 pm    Post subject: Reply with quote

loki99 wrote:
Take a look at this thread or search the howto you posted above for "displaysize". :wink:

You know, that actually did the trick. Thanks for pointing that out. I had just assumed that the DPI was being correctly set, given that I'm using the nvidia driver which automatically grabs the monitor's frequency and DPI settings from its EDID. I discovered that it was using a DPI of ~82, but when I boot into Windows, the DPI there is 96. So, I added this to my xorg.conf:

Code:
Section "Device"
    Option    "UseEdidDpi" "0"
    Option    "DPI" "96 x 96"
EndSection

Now, with a DPI of 96, everything looks fine. This is on a 1280x1024 19" LCD, by the way, and the options above only work with the nvidia driver.
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Tue Jan 24, 2006 2:05 am    Post subject: Reply with quote

Duplicate of https://forums.gentoo.org/viewtopic-t-415187.html
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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