Closed Bug 52058 Opened 24 years ago Closed 18 years ago

[ps] Overline/Strikethrough prints too low

Categories

(Core :: Printing: Output, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: burnus, Assigned: dcone)

References

Details

Attachments

(3 files)

Hi this is with 2000-09-08-21/Linux. style="text-decoration:overline" is printed to close to the characters so they overlap. (I have only tested against the URW++-Fonts, can someone test it with the original Adobe fonts? The problem is: The metric is hardcoded in *.h files. But this is that low that I think this is Mozilla printing problem.)
Attached file Overline-HTML testcase
You can see this with gv. I don't know what the HTML spec sais about how it should look. It's not WYSIWYG this way though as it doesn't look the same on screen as it looks on paper.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → trivial
Status: NEW → ASSIGNED
Target Milestone: --- → Future
spam : changing qa to sujay (new qa contact for Printing)
QA Contact: shrir → sujay
Was this bug fixed recently ? Xprint module (2001-06-10-08-trunk + patch from bug 57820) prints the page correctly...
Summary: [Unix/ps] Overline prints to low → [ps] Overline prints to low
Blocks: 157675
seems dup of bug 127422 We don't use same to do layout and display when print preview.
> seems dup of bug 127422 > We don't use same to do layout and display when print preview. Actually not. This is the PS file, not the preview window. And that XPrint does support it, doesn't help as long as most systems don't have XPrint installed. :-(
This is because afm metrics is suck... See below data in gfx/src/ps/Times-Roman.h: The font's ascent is 683.000000, And some character's bounding area is low left x:3.000000, low left y:-10.000000, up right x:468.000000, up right y:683.000000 So, the overline will overlap part of font.
Attached file output from ps module
Print result of this output is better than view it with gs. The overline is too low and overlap some up area of the font.
Summary: [ps] Overline prints to low → [ps] Overline prints too low
We are also finding that strikethrough text is printed too low as well, and this looks to be the same issue with overline text.
Summary: [ps] Overline prints too low → [ps] Overline/Strikethrough prints too low
I have found the strikethrough output to be somewhat better if we use CapHeight instead of XHeight for calculating the strikethrough position. Pete - what do you think of using this as a solution?
Mass-resolving some bugs related to the old Linux/Unix printing code. The old code has been removed from the tree, and the bugs are all FIXED by the new cairo-based printing system.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: