Bug 1496 - Xorg Xprt does not support "*xp-listfonts-mode: xp-list-internal-printer-fonts" to toggle the usage of printer-builtin fonts
Summary: Xorg Xprt does not support "*xp-listfonts-mode: xp-list-internal-printer-font...
Status: RESOLVED FIXED
Alias: None
Product: xprint
Classification: Unclassified
Component: Server: Font engine: Other (show other bugs)
Version: unspecified
Hardware: All All
: high major
Assignee: Roland Mainz
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 1518 1629
  Show dependency treegraph
 
Reported: 2004-09-29 18:39 UTC by Roland Mainz
Modified: 2004-12-12 02:13 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Prototype patch (2.19 KB, patch)
2004-09-29 19:05 UTC, Roland Mainz
no flags Details | Splinter Review
Alternative patch which fixes the spelling of "xp-listfonts-modes" (5.72 KB, patch)
2004-09-29 20:49 UTC, Roland Mainz
no flags Details | Splinter Review
Hack for xpsimplehelloworld.c to verify the "xp-listfonts-modes" functionality (5.71 KB, patch)
2004-10-03 15:57 UTC, Roland Mainz
no flags Details | Splinter Review
[FIXED_X11R68x] Patch for 2004-10-03-trunk (9.98 KB, patch)
2004-10-03 16:25 UTC, Roland Mainz
roland.mainz: 6.8-branch+
Details | Splinter Review

Description Roland Mainz 2004-09-29 18:39:35 UTC
The Xorg Xprt does not support "*xp-listfonts-mode:
xp-list-internal-printer-fonts" to toggle the usage of printer-builtin fonts on
demand.
Comment 1 Roland Mainz 2004-09-29 19:05:47 UTC
Created attachment 982 [details] [review]
Prototype patch

The prototype patch seems to work but I have to write a small test tool to be
sure.
The patch raises more issues:
- "xp-listfonts-mode" does not appear in "document-attributes-supported" nor in
"xp-page-attributes-supported", the question is whether this is intentional or
a normal bug
- xc/programs/Xserver/Xprint/OidStrs.h has '{ "xp-listfonts-modes", 18 }' -
note the 's' at the end of "xp-listfonts-modes" vs. "xp-listfonts-mode" used
elsewhere in the patch. That may be a typo... or not... ;-(
"dtprint_fspec.ps" talks about "xp-listfonts-modes" so I guess this is the
correct spelling... or not.
Only the DtPrint implementation can answer that question...
Comment 2 Roland Mainz 2004-09-29 20:49:41 UTC
Created attachment 983 [details] [review]
Alternative patch which fixes the spelling of "xp-listfonts-modes"

Alternative patch which fixes the spelling of "xp-listfonts-modes" and adds
"xp-listfonts-modes" to both "document-attributes-supported" and
"xp-page-attributes-supported".
Comment 3 Roland Mainz 2004-09-29 20:50:17 UTC
Comment on attachment 983 [details] [review]
Alternative patch which fixes the spelling of "xp-listfonts-modes"

Note: The PCL DDX needs to be updated, too...
Comment 4 Roland Mainz 2004-10-03 15:57:30 UTC
Created attachment 997 [details] [review]
Hack for xpsimplehelloworld.c to verify the "xp-listfonts-modes" functionality

Hack for xpsimplehelloworld.c to verify the "xp-listfonts-modes" functionality.

The patch is mainly to verify that the patch from attachment #983 [details] [review] works.
Real-life applications should check whether "xp-listfonts-modes" is listed in
"document-attributes-supported" (for Document-level) or
"xp-page-attributes-supported" (for Page-level).
Comment 5 Roland Mainz 2004-10-03 16:25:48 UTC
Created attachment 998 [details] [review]
[FIXED_X11R68x] Patch for 2004-10-03-trunk

The patch fixes the spelling of "xp-listfonts-modes" (the same functionality as
attachment #983 [details] [review] but updates the commets in the code and the PCL driver).
Comment 6 Roland Mainz 2004-10-03 16:32:09 UTC
attachment 998 [details] [review] checked-in...

/cvs/xorg/xc/ChangeLog,v  <--  ChangeLog
new revision: 1.423; previous revision: 1.422
/cvs/xorg/xc/programs/Xserver/Xprint/Init.c,v  <--  Init.c
new revision: 1.7; previous revision: 1.6
/cvs/xorg/xc/programs/Xserver/Xprint/pcl/PclInit.c,v  <--  PclInit.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/Xprint/ps/PsInit.c,v  <--  PsInit.c
new revision: 1.4; previous revision: 1.3
Mailing the commit message to xorg-commit@pdx.freedesktop.org...

... marking bug as FIXED.

Followup is bug 1518 ('"xlsfonts" should have printer support') ...
Comment 7 Roland Mainz 2004-10-13 19:24:29 UTC
Note:
This cased bug 1629 ("Xprt in Xorg trunk crashes on AMD64") due a small memory
corruption problem. If this work gets approved for the X11R6.8.x stable branch
the fix from bug 1629 is needed, too.
Comment 8 Julien Lafon 2004-11-09 01:53:32 UTC
Comment on attachment 998 [details] [review]
[FIXED_X11R68x] Patch for 2004-10-03-trunk

nominating for X11R6.8.2 as needed by the Qt library and KDE.
Comment 9 Roland Mainz 2004-11-19 07:36:55 UTC
Comment on attachment 998 [details] [review]
[FIXED_X11R68x] Patch for 2004-10-03-trunk

Approved for the X11R6.8.x branch in the 2004-11-17 release-wranglers phone
call.
Please don't commit it yourself, I'll handle that once the CVS service is
available again.
Comment 10 Roland Mainz 2004-12-12 21:13:00 UTC
Comment on attachment 998 [details] [review]
[FIXED_X11R68x] Patch for 2004-10-03-trunk

Patch checked-in into X11R6.8.x stable branch:

/cvs/xorg/xc/ChangeLog,v  <--  ChangeLog
new revision: 1.365.2.41; previous revision: 1.365.2.40
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/Xprint/Init.c,v  <--  Init.c
new revision: 1.6.4.2; previous revision: 1.6.4.1
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/Xprint/pcl/PclInit.c,v  <--  PclInit.c
new revision: 1.2.4.1; previous revision: 1.2
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/Xprint/ps/PsInit.c,v  <--  PsInit.c
new revision: 1.3.4.2; previous revision: 1.3.4.1
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
Mailing the commit message to xorg-commit@lists.freedesktop.org...


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.