LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-13-2005, 09:14 PM   #1
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
Strange Font Problems


After a frustrating ordeal with getting my dual desktop working with the ATI drivers I was able to load X and have it work perfectly. Now I face a rather strange problem. The fonts for the title bar and such in firefox are crazy huge. Im talking 50 point size or something here. The same goes for mozilla. I looked at my xorg.conf file and realized that the fglrxconfig script still uses the old /usr/X11R6/....etc... way of finding the fonts, I changed it to /usr/share/fonts/** which I copied from my originall xorg.conf file. I rebooted (cause the ati drivers wont let me just close x.. it will lock the computer) and when it came back up the fonts where better.. still HUGE though. (30 point now). I wrote out a .gtkrc-2.0 file to see if that helps and it indeed changed the font but not the sizes! I set the font to Fixed 9 and it looks like Fixed 30. I use Fixed 9 in everything else and its correct. Aterm, Gaim, Gimp, Xterm, GMPlayer, GKrellm2, Fluxbox etc.. all there fonts are fine... its just firefox and mozilla. Any Ideas?

~/.gtkrc-2.0:
Quote:
gtk-entry-select-on-focus = 1

# Sets the font used by gtk
gtk-font-name = "Fixed 9"

gtk-key-theme-name = "Emacs"

style "imhtml-fix"
{
font_name = "Fixed 10"
}
/etc/X11/xorg.conf:
Quote:
Section "Module"
Load "extmod"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "glx"
Load "type1"
Load "freetype"
EndSection

# **********************************************************************
# Files section. This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"
ModulePath "/usr/X11R6/lib/modules-extra/gatos"
RgbPath "/usr/lib/X11/rgb"
ModulePath "/usr/lib/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
EndSection
 
Old 10-14-2005, 03:28 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Does xorg handle fonts? I don't have anything about fonts in my xorg.conf. I use fontconfig to handle fonts and it's config files are in /etc/fonts
 
Old 10-14-2005, 05:18 PM   #3
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
I rebooted my machine and loaded the original xconfig file and all the fonts are correct. I will list them both in full here.
This one the fonts are just fine in everything:
Code:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/X11R6/lib/modules-extra/gatos"
        RgbPath      "/usr/lib/X11/rgb"
        ModulePath   "/usr/lib/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/CID/"
        FontPath     "/usr/share/fonts/75dpi/"
        FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
        Load  "extmod"
        Load  "dri"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "glx"
        Load  "type1"
        Load  "freetype"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/psaux"
        Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "BNQ"
        ModelName    "BenQ FP731 "
        HorizSync    31.0 - 81.0
        VertRefresh  60.0 - 75.0
        Option      "DPMS"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "ati"
        VendorName  "ATI Technologies Inc"
        BoardName   "RV350 AR [Radeon 9600]"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes  "1280x1024"
        EndSubSection
EndSection
This one the fonts are only a problem in Firefox and Mozilla, everything else is just fine:
Code:
Section "dri"
    Mode 0666
EndSection

Section "Module"
        Load  "extmod"
        Load  "dri"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "glx"
        Load  "type1"
        Load  "freetype"
EndSection

Section "Files"
        ModulePath   "/usr/X11R6/lib/modules-extra/gatos"
        RgbPath      "/usr/lib/X11/rgb"
        ModulePath   "/usr/lib/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/CID/"
        FontPath     "/usr/share/fonts/75dpi/"
        FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
    Option      "AutoRepeat" "500 30"
    Option      "XkbRules" "xfree86"
    Option      "XkbModel" "pc101"
    Option      "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/psaux"
    Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "BNQ"
    ModelName    "BenQ FP731"
    HorizSync    31.0 - 81.0
    VertRefresh  60 - 75
    Option       "DPMS"
EndSection

Section "Monitor"
    Identifier   "Monitor1"
    VendorName   "BNQ"
    ModelName    "BenQ FP731"
    HorizSync    31.0 - 81.0
    VertRefresh  60 - 75
    Option       "DPMS"
EndSection

Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
EndSection

# === ATI device section ===

Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
# ### generic DRI settings ###
# === disable PnP Monitor  ===
    #Option                              "NoDDC"
# === disable/enable XAA/DRI ===
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
# === misc DRI settings ===
    Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr
# ### FireGL DDX driver module specific settings ###
# === Screen Management ===
    Option "DesktopSetup"               "horizontal" 
    Option "HSync2"                     "31.5 - 80.5" 
    Option "VRefresh2"                  "60 - 75" 
    Option "ScreenOverlap"              "0" 
    Option "GammaCorrectionI"           "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
# === OpenGL specific profiles/settings ===
    Option "Capabilities"               "0x00000000"
    Option "CapabilitiesEx"             "0x00000000"
# === Video Overlay for the Xv extension ===
    Option "VideoOverlay"               "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automatically
    Option "OpenGLOverlay"              "off"
# === Center Mode (Laptops only) ===
    Option "CenterMode"                 "off"
# === Pseudo Color Visuals (8-bit visuals) ===
    Option "PseudoColorVisuals"         "off"
# === QBS Management ===
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
# === FSAA Management ===
    Option "FSAAEnable"                 "no"
    Option "FSAAScale"                  "1"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
# === Misc Options ===
    Option "UseFastTLS"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"    # vendor=1002, device=4152
    Screen 0
EndSection

Section "Screen"    Identifier  "Screen0"
    Device      "ATI Graphics Adapter"
    Monitor     "Monitor0"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" 
        ViewPort    0 0  
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Server Layout"
    Screen "Screen0"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
The only major difference is the video card driver being used. The top one is single head, the bottom is dual head. Both root and user accounts behave the same way. And its not gtk as gaim fonts are fine and it uses gtk. Just seems to be those specific applications.

Last edited by Zero-0-Effect; 10-14-2005 at 05:25 PM.
 
Old 10-14-2005, 09:35 PM   #4
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
This must be that ATI Drive causing all this. When I using the Dual monitors (ATI proprietary driver) I get the font issue, as well as a few more issues. grkrellm2 shows only 1 CPU and does not show my temp sensors. If I switch back to the ATI driver that comes with xorg gkrellm2 shows 2CPUs (2 is correct) and also shows the hardware sensors and of course the font issue is no more as well.
 
Old 11-10-2005, 07:32 AM   #5
hothead
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
Hi,
I don't know if you have allready solved your font problem. I had the same problem and while searching the web I stumbled across your post.

I luckily could solve this problem myself very quick.

It seems that firefox has problems recognizing the display resolution. The problem can easily be solved by setting the display resolution to a fixed value.

Firefox -> Edit - > Preferences -> General -> Fonts & Colors -> Display resolution (72dpi)

After that restart firefox and fonts should have normal size now.

Happy browsing!

hothead
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Abiword font problem gescom Slackware 1 09-29-2005 06:01 AM
Font problems markb658 Red Hat 2 05-12-2005 02:00 PM
Font problems... gpetzold Linux - Software 2 07-13-2003 01:56 PM
strange java font size on X leomekenkamp Linux - Software 1 07-07-2003 03:39 AM
Font problems zybreak Slackware 4 02-02-2003 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:37 PM.

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