Bug 106023 - Firefox font problem (was: Viewsonic VX800 Monitor Profile)
Summary: Firefox font problem (was: Viewsonic VX800 Monitor Profile)
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: SaX2 (show other bugs)
Version: unspecified
Hardware: x86 SuSE Pro 9.3
: P5 - None : Enhancement
Target Milestone: ---
Assignee: Mike Fabian
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-20 20:38 UTC by Mark Rechler
Modified: 2006-04-24 13:55 UTC (History)
1 user (show)

See Also:
Found By: Component Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Screenshot of the font problem (85.83 KB, image/jpeg)
2005-08-22 17:28 UTC, Mark Rechler
Details
PNG Screenshot (247.24 KB, image/png)
2005-09-02 18:13 UTC, Mark Rechler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Rechler 2005-08-20 20:38:10 UTC
In SaX2 there is no ViewSonic VX800 monitor profile. If a profile for this could
be added in future releases that would be great. Fonts get cut off because of
this I believe. I know that fonts work fine in other distros for me so I am
guessing this has to do with a Xorg setting somewhere. Thank you.
Comment 1 Marcus Schaefer 2005-08-22 08:10:21 UTC
Hmm, so you have a font problem right ? I know somebody who knows much 
more about fonts than me :-) 
Comment 2 Mike Fabian 2005-08-22 10:46:07 UTC
Mark Rechler> Fonts get cut off because of this I believe

Are they really "cut off" or are they just too small or too big.
Comment 3 Mark Rechler 2005-08-22 17:28:43 UTC
Created attachment 47012 [details]
Screenshot of the font problem

This is a screenshot of the font problem. The second paragraph shows the
problem.
Comment 4 Mark Rechler 2005-08-30 18:40:06 UTC
Just wondering if anybody has been able to figure out the cause of the problem.
Thanks.
Comment 5 Mike Fabian 2005-08-30 19:02:25 UTC
Thank you for the screen shot.

I doubt it has anything to do with the missing entry for the ViewSonic
VX800 monitor in SaX2.

The size of the fonts also looks reasonable.

Just to make sure that it doesn't have anything to do with the missing
entry for the ViewSonic VX800 monitor in SaX2, please check the following:

Is there an entry "DisplaySize" in /etc/X11/xorg.conf? For example like this:

    Section "Monitor"
      DisplaySize  360 270
      HorizSync    27-110
      Identifier   "Monitor[0]"
      ModelName    "VISION MASTER PRO 450"
      Option       "DPMS"
      VendorName   "IIYAMA"
      VertRefresh  50-150
      UseModes     "Modes[0]"
    EndSection

The two values behind DisplaySize are the horizontal and vertical
dimensions of your monitor screen in millimeter.

Please measure your monitor and check whether these values are
correct.  If there is no entry for DisplaySize at all, please add one
to the "Monitor" section with the correct dimensions?

Does this make any difference?

I guess not, but we should make sure first that this is not the problem.

Comment 6 Mark Rechler 2005-09-01 21:14:11 UTC
I have checked the DisplaySize values and they are accurate. The problem is still occurring. Thank you.
Comment 7 Mark Rechler 2005-09-01 22:36:03 UTC
This is what my xorg.conf has:

Section "Monitor"
  Option       "CalcAlgorithm" "CheckDesktopGeometry"
  DisplaySize  357 286
  HorizSync    30-83
  Identifier   "Monitor[0]"
  ModelName    "1280X1024@60HZ"
  Option       "DPMS"
  VendorName   "--> LCD"
  VertRefresh  50-75
  UseModes     "Modes[0]"
EndSection

Comment 8 Mike Fabian 2005-09-02 10:08:57 UTC
According to

http://www.viewsonic.com/support/desktopdisplays/lcddisplays/xseries/vx800/#specs

the DisplaySize is correct indeed.

Then I'm sure that your problem has nothing to do with the missing
entry for the "VX800" monitor in SaX2. The values appear to be
accurate it could not get any better if there was an entry in SaX2.

Most modern monitors report their DisplaySize and other features
automatically, looks like this has happened here (unless you did set
DisplaySize manually).

Anyway, the setup seems to be correct, therefore this cannot be the
problem.

Comment 9 Mike Fabian 2005-09-02 10:23:59 UTC
I still have no idea whatsoever what the problem could be.

Your screen shot is in JPEG format.

Please never make screen shots to illustrate a bug in JPEG format.
JPEG format is suitable for photographic images but not for screen
shots to reproduce a bug. JPEG uses a high compression algorithm which
does not reproduce faithfully every pixel. JPEG files are small, but
on you screen shot one cannot easily distinguish artifacts created by
the JPEG compression from other effects. For example the gray around
you glyphs is probably partly from anti-aliasing and partly form JPEG
artifacts.

Please use PNG format for screen shots in order to reproduce all
pixels exactly as they were on your screen.

Can you attach the screen shot in PNG again?

More questions:

What program is shown in the screen shot?
Your screen shot looks like as if it has been edited. Or how
did you create the round corners? The window frame is missing,
therefore I cannot see which program was used.
I guess it was Mozilla or Firefox and this is a web-page, right?

This could be a problem in Firefox then.


Comment 10 Mark Rechler 2005-09-02 18:13:49 UTC
Created attachment 48636 [details]
PNG Screenshot

This is a PNG screenshot. The program is Firefox. The previous screenshot was
cropped and blown up to make the problem more apparent. To see it here, zoom in
on the second paragraph. I am unable to produce the problem in Opera oddly
enough. It very well might be Firefox, but that would be odd as I do not have
that issue in Fedora Core or Ubuntu. The same exact problem is present in Mepis
however. Office is also affected in Mepis (not in SuSE so far), which makes me
wonder if this is a GTK bug? Thanks.
Comment 11 Mark Rechler 2005-09-06 23:44:35 UTC
I am not sure if this helps, but the fonts are also corrected if the window
loses focus. Thanks.
Comment 12 Mark Rechler 2005-09-16 03:57:13 UTC
I have fixed the bug/problem. In gnome-control-center I changed the font option
to sub-piexl(LCD) and all is well now. Thanks for all your help.
Comment 13 Mike Fabian 2005-09-16 09:55:44 UTC
I doubt that the problem has something to do with sub-pixel hinting.

Even if, it is strange that switching on sub-pixel hinting in the
gnome-control-center works at all for you because of bug #104365.  Are
you sure that sub-pixel hinting is now on on your machine?  You can
check with "xmag" whether you really see coloured rendering.

To me this still looks like a Mozilla/Firefox bug. There are several
similar bugreports with weird rendering in Mozilla/Firefox, very
similar to your report. It is still unknown what causes this though
and it does not happen for most users. Looks like this bug is only
triggered in rather rare conditions.

Comment 14 Mark Rechler 2005-09-16 16:26:46 UTC
There is no coloured rendering. Maybe when I opened font prefrences and selected
subpixel smoothing as rendering (seperate from hinting?) it fixed the problem.
Or maybe some initial bad font settings were overridden? Are there any actual
font config files that might help in determining what this is? Thanks.
Comment 15 Mark Rechler 2005-09-19 00:02:23 UTC
The bug has actually appeared again. It is not as bad as it was before though. I
guess it is Firefox though. These problems do not happen in any other browsers.
Thanks.
Comment 16 Mike Fabian 2005-09-19 09:52:34 UTC
Mark> Are there any actual font config files that might help in
determining Mark> what this is?

The system wide setup files for fontconfig are in /etc/fonts/.

You may add your own fontconfig setup file ~/.fonts.conf to override
system wide settings.

When you use the KDE control centre to setup anti-aliasing,
sub-pixel-rendering, etc. ... the results are written to ~/.fonts.conf
and will be effective for both KDE *and* GNOME (there are a few bugs
though in the way KDE writes ~/.fonts.conf, see bug #113637).

However, when you use the Gnome control centre to do this sort of
setup, Gnome doesn't write anything to ~/.fonts.conf, it sets some
X-resources instead. This will can never have an effect on KDE if you
later start KDE on the same machine as the X-resources are not
permanent, they are set only when Gnome starts (Gnome remembers the
previous values in ~/.gconf/ instead of writing ~/.fonts.conf).  And,
even worse, the X-resources set by Gnome have currently no effect! 
(For details why not see bug #104365).

That means if you want to enable sub-pixel rendering (which is
coloured rendering), you either have to use the KDE control centre
(call "kcontrol" from the command line) or do it manually by writing
your ~/.fonts.conf manually.

Just as an example, if you want to enable sub-pixel rendering with the
order "rgb" (red, green, blue from left to right), always use the
autohinter and always use anti-aliasing, you can write the following
in your ~/.fonts.conf:


    <fontconfig>

	    <match target="font">
		    <edit name="rgba" mode="assign">
			    <const>rgb</const>
		    </edit>
	    </match>
	    <match target="font">
		    <edit name="autohinter">
			    <bool>true</bool>
		    </edit>
	    </match>
	    <match target="font">
		    <edit name="antialias">
			    <bool>true</bool>
		    </edit>
	    </match>

    </fontconfig>

(The opening <fontconfig> and the closing </fontconfig> tags are
needed at the beginning and end of each fontconfig setup file).

All this will not help for you Mozilla/Firefox problem, which is most
likely a bug of Mozilla/Firefox.

I only explained this to help you understand the fontconfig setup
better.

Comment 17 Mike Fabian 2005-09-19 09:55:00 UTC
Even though the missing entry for your Viewsonic VX800 Monitor doesn't
have anything to do with the font rendering problem in Mozilla, the
SaX2 author Marcus Schäfer said he would like to add this monitor to
the list just for completeness.

Can you please add the output of

    hwinfo --monitor

to this bug report? Marcus will then add an entry for your monitor for
the next release.

Comment 18 Mark Rechler 2005-09-20 01:09:18 UTC
The command yields this output:

33: None 00.0: 10000 Monitor
  [Created at fb.70]
  Unique ID: rdCR.EY_qmtb9YY0
  Hardware Class: monitor
  Model: "Generic Monitor"
  Vendor: "Generic"
  Device: "Monitor"
  Resolution: 1280x1024@77Hz
  Driver Info #0:
    Max. Resolution: 1280x1024
    Vert. Sync Range: 50-90 Hz
    Hor. Sync Range: 31-82 kHz
  Config Status: cfg=yes, avail=yes, need=yes, active=unknown

Howeverm the info is incorrect. Horizontal should be 30-83. Vertical 50-75.
Resolution should be 1280x1024@60Hz. Thanks.
Comment 19 Mike Fabian 2005-09-20 09:14:21 UTC
Adding Marcus Schäfer <ms@suse.de> to CC:.
Comment 20 Marcus Schaefer 2005-09-20 09:45:07 UTC
Ok, I added the monitor to the database: 
 
+#============================================== 
+# VX 800 
+#---------------------------------------------- 
+VIEWSONIC:VX 800  { 
+ Option=DPMS 
+ Hsync=30-83 
+ Vsync=50-75 
+} 
 
Comment 21 Mike Fabian 2005-10-14 12:19:57 UTC
Changing subject because it is a Firefox problem.
Comment 22 Mike Fabian 2006-04-24 13:55:11 UTC
I have no idea what has caused the problem (although I have seen similar problems in Firefox
myself a few times).

But I never saw such problems again during the last few months, therefore I guess it is fixed
in newer versions of firefox. Closing as FIXED for now.

Please retest with MozillaFirefox-1.5.0.1 (the version which will be distributed with SuSE Linux 10.1)
and reopen this bug if the problem persists.