Bug 698522 - proggy blurry in F-15 in gnome-terminal
Summary: proggy blurry in F-15 in gnome-terminal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: grimmer-proggy-tinysz-fonts
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Bojan Smojver
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-21 06:20 UTC by Bojan Smojver
Modified: 2011-05-19 04:47 UTC (History)
9 users (show)

Fixed In Version: grimmer-proggy-tinysz-fonts-1.0-5.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 04:47:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Blurry rendering on F-15, black on white (200.15 KB, image/png)
2011-04-22 05:07 UTC, Bojan Smojver
no flags Details
Blurry rendering on F-15, wheat on black (188.88 KB, image/png)
2011-04-22 05:08 UTC, Bojan Smojver
no flags Details
Crisp rendering on F-14, black on white (48.31 KB, image/png)
2011-04-22 05:13 UTC, Bojan Smojver
no flags Details
Crisp rendering on F-14, wheat on black (50.81 KB, image/png)
2011-04-22 05:13 UTC, Bojan Smojver
no flags Details
Proggy 11 point with antialiasing turned off in F-15, some glyphs are flattened on top (4.83 KB, image/png)
2011-04-25 03:00 UTC, Bojan Smojver
no flags Details
Proggy 11 point with antialiasing turned off in F-14, not squashed (2.75 KB, image/png)
2011-04-25 03:06 UTC, Bojan Smojver
no flags Details

Description Bojan Smojver 2011-04-21 06:20:50 UTC
Description of problem:
Fonts appear blurry when compared to F-14 (compiz).

Version-Release number of selected component (if applicable):
gnome-shell from F-15 beta.

How reproducible:
Always.

Steps to Reproduce:
1. Install grimmer-proggy-tinysz-fonts.
2. Configure this font with size 11 in F-14 and F-15 as default terminal font.
3. Compare.
  
Actual results:
F-14, sharp look. F-15, blurry look, even after tweaking.

Expected results:
Should always be sharp.

Additional info:

Comment 1 Owen Taylor 2011-04-21 13:42:30 UTC
Fedora 15 uses a different font with different rendering parameters than Fedora 14. There's always a tradeoff between sharpness and fidelity to letter forms, but I don't think there's actually a bug here in terms of something we could fix with code changes. 

(In terms of text that's part of the GNOME Shell UI, light text on a black background always appears different than black text on a light background as well.)

Comment 2 Bojan Smojver 2011-04-21 15:55:23 UTC
I don't think you quite understood what I reported. Exactly the same font (which I packaged for Fedora) is rendered blurry at the same point size in F-15. F-14 has no such trouble.

To test, set that font as your terminal font at size 11. It is blurry both white on black and black on white.

PS. Granter, the shell may not be the component respontible here. I don't really know, but we have to start somewhere.

Comment 3 Bojan Smojver 2011-04-21 15:57:22 UTC
And sorry about poor spelling above. Darn phone keyboard...

Comment 4 Owen Taylor 2011-04-21 16:56:04 UTC
if you attach A vs. B screenshots, I can probably figure out the appropriate component to reassign this to.

Comment 5 Bojan Smojver 2011-04-22 05:07:56 UTC
Created attachment 494056 [details]
Blurry rendering on F-15, black on white

Comment 6 Bojan Smojver 2011-04-22 05:08:47 UTC
Created attachment 494057 [details]
Blurry rendering on F-15, wheat on black

Comment 7 Bojan Smojver 2011-04-22 05:13:24 UTC
Created attachment 494058 [details]
Crisp rendering on F-14, black on white

Comment 8 Bojan Smojver 2011-04-22 05:13:53 UTC
Created attachment 494059 [details]
Crisp rendering on F-14, wheat on black

Comment 9 Bojan Smojver 2011-04-22 05:18:02 UTC
Note how even in the settings dialog, in the font selection dropdown, the font is rendered blurry.

Probably not a gnome-shell thing, but I really don't know enough about Gnome 3 to tell what could be causing this. Maybe some sort of "don't anti-alias this font thing" is not turned on or something. Dunno.

Comment 10 Bojan Smojver 2011-04-22 05:21:09 UTC
Ah, one more note. I'm running "Best contrast" on F-14 and everything looks super sharp (in fact, fonts look better than both Windows and Mac machines I own). Unfortunately, there is no such setting in Gnome 3 (not even with tweaks tool loaded). Not sure whether it matters.

Comment 11 Owen Taylor 2011-04-23 19:55:30 UTC
OK, the screenshot makes things pretty clear ... I actually hadn't realized you were talking about a specific non-antialiased font, though rereading your original comment that is clear. In order of likelyhood, this has to do with:

 - The fontconfig snippets included in the font package and how they interact with the environment (the exact environment options that GNOME has set will be different in Fedora 15, but a font that is just bitmaps should have fontconfig snippets to turn antialiasing off without regard to the environment.)
 - The actual bits of the font (maybe they were upated)
 - Code changes to Fontconfig or FreeType that cause different rendering

Comment 12 Bojan Smojver 2011-04-25 02:59:24 UTC
I turned off antialiasing in F-15 with:
------------------
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <test qual="any" name="family" compare="eq">
      <string>ProggyTinyTTSZ</string>
    </test>
    <edit mode="assign" name="antialias"><bool>false</bool></edit>
  </match>
</fontconfig>
------------------

Granted, the font looks sharper. However, the tops of some glyphs appear to be squashed. I'll attach a screen shot. Watch the "<?xml version="1.0"?>" and see how the zero is rendered.

Comment 13 Bojan Smojver 2011-04-25 03:00:09 UTC
Created attachment 494603 [details]
Proggy 11 point with antialiasing turned off in F-15, some glyphs are flattened on top

Comment 14 Bojan Smojver 2011-04-25 03:06:15 UTC
Created attachment 494604 [details]
Proggy 11 point with antialiasing turned off in F-14, not squashed

Comment 15 Bojan Smojver 2011-04-25 03:08:54 UTC
So, either there is some knob in the conf file that needs to be turned to make this be rendered like in F-14 (which I can do, if anyone can point to what that should be) or F-15 rendering needs to be adjusted to not flatten the tops of glyphs.

Any pointers welcome.

Comment 16 Bojan Smojver 2011-04-28 00:03:41 UTC
Given that the font didn't change (I'm the package maintainer of it) and turning off antialiasing isn't helping completely (it just uncovers a different issue), I'm going to reassign to fontconfig, if for no other reason but to get feedback on how to fix this.

Comment 17 Bojan Smojver 2011-05-02 00:15:00 UTC
Ping...

Comment 18 Pravin Satpute 2011-05-02 11:47:05 UTC
might be https://bugzilla.redhat.com/show_bug.cgi?id=692359 can help in this case.

I have just enable autohinting in fonts .conf file.

Comment 19 Bojan Smojver 2011-05-02 14:13:05 UTC
(In reply to comment #18)
> might be https://bugzilla.redhat.com/show_bug.cgi?id=692359 can help in this
> case.
> 
> I have just enable autohinting in fonts .conf file.

From memory, I think I tried that in .fonts.conf. Didn't help, but I'll verify.

Comment 20 Bojan Smojver 2011-05-05 08:18:58 UTC
(In reply to comment #19)
> (In reply to comment #18)
> > might be https://bugzilla.redhat.com/show_bug.cgi?id=692359 can help in this
> > case.
> > 
> > I have just enable autohinting in fonts .conf file.
> 
> From memory, I think I tried that in .fonts.conf. Didn't help, but I'll verify.

Yeah, that does it. OK, reassigning to self and will put that into the package.

Comment 21 Fedora Update System 2011-05-06 00:26:33 UTC
grimmer-proggy-tinysz-fonts-1.0-5.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/grimmer-proggy-tinysz-fonts-1.0-5.fc15

Comment 22 Fedora Update System 2011-05-07 15:08:50 UTC
Package grimmer-proggy-tinysz-fonts-1.0-5.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing grimmer-proggy-tinysz-fonts-1.0-5.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/grimmer-proggy-tinysz-fonts-1.0-5.fc15
then log in and leave karma (feedback).

Comment 23 Fedora Update System 2011-05-19 04:46:57 UTC
grimmer-proggy-tinysz-fonts-1.0-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.