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

Bug#399183: [SPAM] - Re: Bug#399183: xserver-xorg: incorrectly calculates TrueTypefontmetrics - Bayesian Filter detected spam



Thanks for the screenshots, Sergei.


On Tue, 2007-06-19 at 10:13 +0400, Sergei Golovan wrote:
> 
> I've attached two screenshots of Dejavu font in xdf window. Firstly,
> the window size is different for encoding iso8859-1 and iso10646-1 (it
> may indicate that font metrics differ). Moreover, I selected 'hyphen
> char' in both windows and you can see that its dimensions is not the
> same in iso8859-1 (width 6; left 1; right 5; accent 6; descent -4) and
> iso 10646-1 (width 6; left 1; right 6; accent 18; descent 6). The
> latter metrics look awful.

OK, I can reproduce that the xfd boxes on both cases have different
sizes, even though the characters inside them look the same.


> >
> > Could you also tell us which versions you now have installed, including
> >         xserver-xorg
> 
> 1:7.1.0-16
> ...

OK, you're using the stable etch versions.  One possibility is that the
matter got addressed and fixed in the following versions that we're now
testing in unstable.  I've reproduced the xfd box size difference, but
let's try for reproduction of the latin sample difference.


> Another two screenshots contain text samples made by Dejavu and Arial
> fonts. The upper sample is produced using 8-bit font encoding
> (iso8859-1 for dejavu and koi8-r for arial - it contains some
> cyrillic). The problem is that the samples look differently, which is
> unacceptable in my view.
> 
> I've also attached magnified samples for which the differences are
> highlighted by thing red strokes.

OK, that illustrates the problem well. Let's focus on reproducing the
dejavu sample difference you've shown here.  Can you describe precisely
how you generated these dejavu samples?

Alternatively, I can generate text samples from gfontview using both
"gfontview" and "LANG=en_AU gfontview" (my default locale is UTF-8, so I
expect the former to be using the iso10646-1 version of the font, while
the latter should be using iso8859-1.  ).  I select the dejavu font,
enter some string "In girum consum" into the Test String then click
'Make String'.  I can magnify the resulting sample using xmag.  In my
case the horizontal spacing appears to be the same.  It might be useful
if you could try this method to see if your differences can be
reproduced this way.

A third technique to get samples is to start up abiword (applying LANG
as needed).  

I guess for your system, you'd use LANG=ru_RU.KOI8-R, LANG=ru_RU.UTF-8,
maybe LANG=ru_RU.ISO-8859-1 (which doesn't really make sense) or
LANG=en_US.ISO-8859-1 or maybe LANG=C.

But anyway, tell us what you did to generate your dejavu text samples.

Oh, tell us what your default locale is too. "env | grep LANG".  Mine is
en_AU.UTF-8.

Drew



Reply to: