Closed Bug 73434 Opened 23 years ago Closed 23 years ago

Xprint renders text in CODE tags with zero-width...

Categories

(Core Graveyard :: Printing: Xprint, defect)

Sun
Solaris
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.3

People

(Reporter: roland.mainz, Assigned: roland.mainz)

References

()

Details

Attachments

(3 files)

Xprint module (with or without fixes from bug 72087) does not render text in
<code></code> tags correctly. It looks like the width of these text elements is
0.

Example:
-- snip --
<html>
<body>
<h1>Xprint font test #001</h1>
Hello this is a <code>text</code> which should demonstrate some bugs...
</body>
</html>
-- snip --

Xprt was restriced to use printer model fonts only:
% export XPCONFIGDIR=/home/gisburn/cwork/Xprint/Xprt_config/XpConfig; Xprt -fp
/home/gisburn/cwork/Xprint/Xprt_config/XpConfig/C/print/models/SPSPARC2-TEST001/fonts,/home/gisburn/Xp_miscfonts
-audit 4 :1

Xterm output while printing:
-- snip --
** using printing=Xprint
Reading libgfxxprt.so
Reading libXp.so.1
####---- :nsDeviceContextXP::SetSpec
####---- :nsXPrintContext::nsXPrintContext
####---- :nsXPrintContext::Init
SetupPrintContext(aSpec)
####---- :nsXPrintContext::SetupPrintContext
borders top=0.000000, bottom=0.000000, left=0.000000, right=0.000000
XpuGetPrinter: looking for 'ps001'
XpuGetPrinter2: probing display ':1' for 'ps001'
XpuCheckExtension: XpQueryVersion ':1.0' 1 0
XpuGetOneLongAttribute: 'default-printer-resolution' got '300'
XpuGetOneLongAttribute: result 300
print resolution 300
####---- :nsXPrintContext::SetupWindow
nsXPrintContext::SetupWindow: x=75 y=75 width=2330 height=3357
####---- :nsXPrintContext::GetPrintResolution
nsFontXP::LoadFont: loading font
'-compugraphic-garamond-medium-r-normal--8782-2500-2540-2540-p-36560-iso8859-1'
nsFontXP::LoadFont: loading font
'-compugraphic-garamond-medium-r-normal--38-*-*-*-p-*-iso8859-1'
nsFontXP::LoadFont: loading font
'-compugraphic-garamond-bold-r-normal--8782-2500-2540-2540-p-38730-iso8859-1'
nsFontXP::LoadFont: loading font
'-compugraphic-garamond-bold-r-normal--76-*-*-*-p-*-iso8859-1'
nsFontXP::LoadFont: loading font
'-compugraphic-garamond-medium-r-normal--31-*-*-*-p-*-iso8859-1'
####---- :nsXPrintContext::BeginDocument
nsXPrintContext::BeginDocument: document title: ''
XpuCheckSupported: XpGetOneAttribute(job-attributes-supported) returned
'job-name job-owner notification-profile xp-spooler-command-options '
XpuCheckSupported: probing 'job-name'=='job-name'
XpStartJob(mPDisplay, XPSpool)
XpuWaitForPrintNotify(mPDisplay, XPStartJobNotify)
XpuWaitForPrintNotify: event_base_return=-78183484, error_base_return=1
XpuWaitForPrintNotify: Killing non-PrintNotify event 91/0 while waiting for
-78183484/0
Enabling Quirk StyleSheet
XpStartPage(mPDisplay, mDrawable)
XpuWaitForPrintNotify(mPDisplay, XPStartPageNotify)
XpuWaitForPrintNotify: Killing non-PrintNotify event 91/2 while waiting for
-78183484/4
XpuWaitForPrintNotify: Killing non-PrintNotify event 91/4 while waiting for
-78183484/4
nsFontXP::LoadFont: loading font
'-compugraphic-garamond-medium-r-normal--200-*-*-*-p-*-iso8859-1'
XpEndPage(mPDisplay)
XpuWaitForPrintNotify(mPDisplay, XPEndPageNotify)
XpuWaitForPrintNotify: Killing non-PrintNotify event 91/5 while waiting for
-78183484/5
XpEndJob(mPDisplay)
XpuWaitForPrintNotify(mPDisplay, XPEndJobNotify)
XpuWaitForPrintNotify: Killing non-PrintNotify event 91/3 while waiting for
-78183484/1
XpuWaitForPrintNotify: Killing non-PrintNotify event 91/1 while waiting for
-78183484/1
XpuCheckExtension: XpQueryVersion ':1.0' 1 0
####---- :nsXPrintContext::~nsXPrintContext
/people/gisburn/work/xprint_fonttest.html
/people/gisburn/work/xprint_fonttest.html
-- snip --
Adding reference to bug 72087.

BTW: Attached PostScript file is DIN-A4 - use "View/Page Viewing Controls..." in
sdtimage to choose correct page size...
Blocks: 72087
Assign to Roland.
Assignee: katakai → Roland.Mainz
QA Contact: Roland.Mainz → katakai
Accepting bug.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.3
reminder (for me):
bug 83242 ("Add GC-cache to Xprint module") revamped the whole rendering system
in Xprint module... is this bug still alive ?
Seems to be fixed by bug 83242. Once bug 83242 and bug 86291 are fixed it's time
to re-evaluate all these bugs and check if they are really dead... :-)
Fixed by patch in bug bug 83242...
SPAM: Marking as "FIXED"...
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified on 2002011614 linux build.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: