After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 547221 - dvi backend of 2.23 incorrectly displays overllaping Type 1 font glyphs
dvi backend of 2.23 incorrectly displays overllaping Type 1 font glyphs
Status: RESOLVED DUPLICATE of bug 494736
Product: evince
Classification: Core
Component: backends
2.23.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-10 23:56 UTC by Vasile Gaburici
Modified: 2010-10-12 09:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
DVI (280 bytes, application/x-dvi)
2008-08-11 18:09 UTC, Vasile Gaburici
Details
Screenshot (11.51 KB, image/png)
2008-08-17 15:17 UTC, Carlos Garcia Campos
Details

Description Vasile Gaburici 2008-08-10 23:56:52 UTC
The dvi backend of evince 2.23 converts Type 1 fonts to PK, which it probably should not do, and then incorrectly displays the resulting glyphs if they overlap in the dvi file.

Both xdvi and dvipng can display the Type 1 glyphs properly, probably because they don't gratuitously convert to PK fonts.

I'm linking to a screenshot that is using a commercial font to make the problem easy to spot [http://www.cs.umd.edu/~gaburici/Screenshot-evince.dvi.png]. With fonts which are less slanted and more letter-spaced it's harder to see what's going on.
Comment 1 Carlos Garcia Campos 2008-08-11 16:34:28 UTC
Could you attach here the dvi document, please?
Comment 2 Vasile Gaburici 2008-08-11 18:09:07 UTC
Created attachment 116377 [details]
DVI
Comment 3 Carlos Garcia Campos 2008-08-17 14:45:18 UTC
It works for me. 
Comment 4 Vasile Gaburici 2008-08-17 14:59:09 UTC
Meaning that the glyph white areas do not obscure the black areas?

I'm using freetype 2.3.7. Does evince depend on anything else to render dvis?

Comment 5 Carlos Garcia Campos 2008-08-17 15:17:19 UTC
Created attachment 116798 [details]
Screenshot

(In reply to comment #4)
> Meaning that the glyph white areas do not obscure the black areas?

Yes, this is what I see. 

> I'm using freetype 2.3.7. Does evince depend on anything else to render dvis?
> 

freetype 2.3.5 (ubuntu)
cairo 1.6.5 (from sources)
Comment 6 Vasile Gaburici 2008-08-17 15:34:31 UTC
What you are seeing is the broken behavior! Note the E is partially hidden by the white bounding box of the X. This does not happen with xdvi or dvipng.

Doesn't seem to matter, but I'm using:
freetype-2.3.8-0.1.20080729cvs.fc9.i386
cairo-1.6.4-1.fc9.i386
Comment 7 Carlos Garcia Campos 2008-08-17 17:33:19 UTC
(In reply to comment #6)
> What you are seeing is the broken behavior! Note the E is partially hidden by
> the white bounding box of the X. This does not happen with xdvi or dvipng.
>

oh, you are right. Confirming then. 

> Doesn't seem to matter, but I'm using:
> freetype-2.3.8-0.1.20080729cvs.fc9.i386
> cairo-1.6.4-1.fc9.i386
> 

Comment 8 Carlos Garcia Campos 2008-08-17 17:37:43 UTC
I guess it's caused by this change:

http://svn.gnome.org/viewvc/evince?view=revision&revision=3006

See the explanation on mailing list:

http://mail.gnome.org/archives/evince-list/2008-April/msg00011.html
Comment 9 Vasile Gaburici 2008-08-17 17:43:54 UTC
Hmm, are you sure? IMHO the problem is that evince resorts to bitmaps, which are probably not transparent, so cairo can't help but obscure what's behind them. OTOH, xdvi uses PostScript outlines, no bitmaps are generated.
Comment 10 Carlos Garcia Campos 2008-08-17 18:07:57 UTC
(In reply to comment #9)
> Hmm, are you sure? 

No, I'm not sure. I just guessed that was the problem because it's the only change we have made in the dvi backend lately and it's related to T1 fonts. 

> IMHO the problem is that evince resorts to bitmaps, which
> are probably not transparent, so cairo can't help but obscure what's behind
> them. OTOH, xdvi uses PostScript outlines, no bitmaps are generated.
> 

Comment 11 Carlos Rendon 2010-10-12 02:46:50 UTC
I think this is a duplicate of 494736. With the patch I added to that defect, this problem goes away on the attached DVI.
Comment 12 Carlos Garcia Campos 2010-10-12 09:49:55 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 494736 ***