Re: Also: odd GtkHTML behaviour with monospaced fonts (was Re: [Evolution] forward with attachment bug)



Strange, shouldn't that be the same font?

It *is* the same font! That's what's so weird. In both windows GtkHTML
is rendering the same text in Luxi Mono, but in one window the spacing
is all messed up and in the other it isn't!

That's my font, too. So where are the differences between your and my
setup, that could cause this?

Settings / Mail Preferences
 [ ] use the same fonts as other applications
 Terminal Font: Luxi Mono, 8pt


However, I had the same problem after a fresh install: The mail
"preview" pane had smaller spaces than other chars, don't remember
Composer though.

I worked around that by setting another font and blamed it on a the
default font. Unfortunately I don't know which it was.

Does changing the font work for you, too?

Yes, but that's not really the point. This shouldn't be happening at all
(in fact I'm completely baffled how it does). After all, changing from
one monospace font to another monospace font shouldn't make any real
difference, and it is *very* odd that it displays correctly in the
composer window but not in the preview pane. And it's not as if Luxi
Mono is some crappy font - it comes with XFree86 and is RHL9's default
monospace font for all apps.

Sure, you are right.


There are already some other bugs with GtkHTML's font handling (printing
is messed up, and the GNOME default monospace font is not used) so I
don't know whether to add this as a comment to an existing bug report or
create a new bug.

Printing issue: Uses the first font in alphabet. Seems unrelated.
Gnome default: Not sure, feels unrelated too, IMHO.


The big question is: *How* can fonts be rendered different? The reason
seems even not to be related to the font (as we use the same).

...guenther


-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]