Apache OpenOffice (AOO) Bugzilla – Issue 16195
Text printed double when transparency is used & font is not available
Last modified: 2004-01-28 17:10:07 UTC
When printing (to a printer or a PS file), the testcase has 2 problems: 1. The big heading "Oliver Klee" is printed two times, one on top of the other, in a different font (see attached PS file). 2. In the headline of the recipient field, "Str." and "50" are overlapping (in "Pariser Str. 50"). It looks ok on screen.
Created attachment 7213 [details] Testcase: SXW file
Created attachment 7214 [details] The wrong printout: PostScript file
you attached the postscript-file twice instead of uploading the sxw. Please attach the file. Thanks.
Created attachment 7631 [details] Testcase (really)
confirming issue, setting target-milestone, reassigning to gsl. Cause of Problem: Transparent Object in combination with "Screen-only Font" [1] & expanded spacing Details: (please have a look at the attached screenshot vergleich.png wich shows ps-output when using transparency (top), display in OOo (1.1rc, middle), ps-output when reducing transparency (bottom)) The attached document testcase.sxw uses "Nimbus Sans L" and contains a grey design-element with transparency. When printing to a ps-file OOo asks whether transparency should be reduced or not. When choosing to print with transparency, some text gets printed twice with different fonts, other parts just print "ugly". The text that gets printed twice is using expanded spacing. When set to default, the text just gets printed "ugly". When using an available font the printout is somewhat better, but still the text next to/on top of the element is printed ugly (I assume that these get printed as graphics) [1] Writer doesn't show the font in the list and assumes "The font has not been installed. The closest available font will be used", Calc however can use the font and tells "This is a screen font. The printer image may differ."
Created attachment 7633 [details] screenshot (ggv with transp., OOo-view, ggv without transp. - top to bottom)
cp->ka: in fact the whole letter is printed as a bitmap. Only the string "Oliver Klee" is printed twice, once in the bitmap and once with the font "Impact". Apparently for creating the bitmap a different font had been used. Besides the text "Oliver Klee" only two "blanks" are printed in Impact font. So I wonder why "Oliver Klee" got printed twice ?
reassign not resolve
reassign
Ahh, mid-air coll., so you noticed your mistake ;-) If it's right that the whole letter gets printed as a bitmap, than why are the differences so huge? Compare the adress and the real contents (starting with "Rechnung für Onlinekosten"). Again two different fonts are used. (Screenshot ggv_view.png)
Created attachment 7641 [details] Adress & real contents - different fonts albeit everything is bitmap?
KA=>THB: could you have a look, please?
Yep, reproducable even in OOo1.1 RC. Problem is that the "Oliver Klee" string is stretched, resulting in META_STRETCHTEXT_ACTIONs to be generated for the recorded meta file. Which, as a matter of fact, have remained uninterpreted in the printing code path for at least three years. Wah. Which again proves how important it is that people file issues on their bugs, and attach proper test cases. Thanks a bunch!! On an aside: transparency in printed documents is a bit troublesome, at least when text on high-quality printers is involved. For printing transparency, we have no chance but render the whole area affected by transparent objects as a bitmap. And especially on laser printers, there might be visible differences between glyphs rendered by the printer, and glyphs rendered into a bitmap, which is then rasterized and dithered by the printer. So you might check whether you can maybe achieve the same effect (slightly greyed out glyphs) by changing the colors manually, and putting the grey rectangle _behind_ the text.
Thorsten, the transparency was a workaround around another problem: I just wanted a grey rectangle behind black text, but I couldn't get the foreground text to have no background so that the grey rectangle was visible (I always got white background on the text line - another bug)? I'll be happy about any hints.
Created attachment 7782 [details] testdoc without transparent rectangle
The new attachment ohne_transp.sxw (won't work with OOo1.0.x) achieves the same effect as attached testcase.png without using transparent rectangle - instead Background-fill of the frames (Rahmen - containing "Oliver Klee" & the table containing own adress) is set to white with 100% transparency. You can use any color when setting the transparency to 100% (in OOo 1.0.x there is no such transparency - that's why it's only working in OOo1.1)
Thanks, Christian. That's what I meant. Printout should now look significantly better.
Implemented the missing META_STRETCHTEXT_ACTION for printing. Now works as expected.
Changed file is vcl/source/gdi/print2.cxx
.
Please verify.
Verified on OO.o 1.1.0 on Linux.
set to fixed
Verified in cws thb07 on Lin, Win.
The fix is integrated in OOo1.1.1 on Sols, Lin, Win. This version will be available soon.