#14399: wxOSX-Cocoa incorrect printer output scaling

50 views
Skip to first unread message

wxTrac

unread,
Jun 12, 2012, 9:31:16 AM6/12/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399>

#14399: wxOSX-Cocoa incorrect printer output scaling
-----------------------------------------+----------------------------------
Reporter: johnr | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: wxOSX-Cocoa printer scaling | Blockedby:
Patch: 0 | Blocking:
-----------------------------------------+----------------------------------
Scaling is Ok on screen but on paper each wxMM_LOMETRIC unit approximates
one printer pixel. Reverting revision 71500 dcgraph.h/cpp fixes output to
the printer.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399>

wxTrac

unread,
Jun 12, 2012, 12:35:50 PM6/12/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:1>

#14399: wxOSX-Cocoa incorrect printer output scaling
-----------------------------------------+----------------------------------
Reporter: johnr | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: wxOSX-Cocoa printer scaling | Blockedby:
Patch: 0 | Blocking:
-----------------------------------------+----------------------------------
Changes (by csomor):

* owner: => csomor
* status: new => accepted


Comment:

Hi John

as r71500 was related to a different bug report, just reverting is not
really a good option, I'd try to find an optimal solution

Best,

Stefan


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:1>

wxTrac

unread,
Jun 12, 2012, 12:36:48 PM6/12/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:2>

#14399: wxOSX-Cocoa incorrect printer output scaling
-----------------------------------------+----------------------------------
Reporter: johnr | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: wxOSX-Cocoa printer scaling | Blockedby:
Patch: 0 | Blocking:
-----------------------------------------+----------------------------------

Comment(by csomor):

Replying to [comment:1 csomor]:
> I'd try to find an optimal solution

sorry, I meant to write I will try to find ...


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:2>

wxTrac

unread,
Jun 12, 2012, 9:44:17 PM6/12/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:3>

#14399: wxOSX-Cocoa incorrect printer output scaling
-----------------------------------------+----------------------------------
Reporter: johnr | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: wxOSX-Cocoa printer scaling | Blockedby:
Patch: 0 | Blocking:
-----------------------------------------+----------------------------------

Comment(by johnr):

Replying to [comment:1 csomor]:
> as r71500 was related to a different bug report, just reverting is not
really a good option, I'd try to find an optimal solution

Agreed Stefan, that was just the result of my debugging and I also needed
it to work yesterday.

> sorry, I meant to write I will try to find ...
> Stefan

Nice to know I am not on my own with this one :) There are other
idiosyncrasies with clipping regions and scaling along with linear
gradient fill printing crashes but other than slowly becoming familiar
with the code I haven't had any brain surfing moments.
John


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:3>

wxTrac

unread,
Jun 13, 2012, 2:23:04 AM6/13/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:4>

#14399: wxOSX-Cocoa incorrect printer output scaling
-----------------------------------------+----------------------------------
Reporter: johnr | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: wxOSX-Cocoa printer scaling | Blockedby:
Patch: 0 | Blocking:
-----------------------------------------+----------------------------------

Comment(by robind):

Just FYI, I also ran into this scaling issue tonight. It was kind of
funny to see a whole page reduced to the size of a postage stamp when
printed. :-)


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:4>

jmfauth

unread,
Jun 13, 2012, 3:57:29 AM6/13/12
to wx-dev


On 13 juin, 03:44, "wxTrac" <nore...@wxsite.net> wrote:
>
>  Replying to [comment:1 csomor]:
>  > as r71500 was related to a different bug report, just reverting is not
>  really a good option, I'd try to find an optimal solution
>
>  Agreed Stefan, that was just the result of my debugging and I also needed
>  it to work yesterday.
>
>  > sorry, I meant to write I will try to find ...
>  > Stefan
>
>  Nice to know I am not on my own with this one :) There are other
>  idiosyncrasies with clipping regions and scaling along with linear
>  gradient fill printing crashes but other than slowly becoming familiar
>  with the code I haven't had any brain surfing moments.
>  John
>

Yes, see

http://groups.google.com/group/wx-dev/browse_thread/thread/eede5b22e0266956/ee1a2e300766445f

And an image:
(I do not know how to put working link via Google group!)

http: img602 . imageshack . us img602 362 wx2829.png

jmf

wxTrac

unread,
Jun 13, 2012, 5:08:19 AM6/13/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:5>

#14399: wxOSX-Cocoa incorrect printer output scaling
-----------------------------------------+----------------------------------
Reporter: johnr | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: wxOSX-Cocoa printer scaling | Blockedby:
Patch: 0 | Blocking:
-----------------------------------------+----------------------------------

Comment(by johnr):

Replying to [comment:4 robind]:
> Just FYI, I also ran into this scaling issue tonight. It was kind of
funny to see a whole page reduced to the size of a postage stamp when
printed. :-)

A bit of humour always helps :)

The other oddity I noticed with a grid rendered directly to a
wxPrintPreview frame was that on MSW the zoom works well and all
components enlarge or shrink appropriately but on wxOSX-Cocoa the grid
size doesn't change when zoomed although other components do. My use of
SetUserScale is ok in msw but not osx.

There are some callback functions in wxosx printing or graphics code and I
note that, when printing, dc->EndPage is called before linear gradient
fill occurs, at least when xCode debugging.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:5>

wxTrac

unread,
Jun 13, 2012, 1:15:51 PM6/13/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:6>

#14399: wxOSX-Cocoa incorrect printer output scaling
-----------------------------------------+----------------------------------
Reporter: johnr | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: wxOSX-Cocoa printer scaling | Blockedby:
Patch: 0 | Blocking:
-----------------------------------------+----------------------------------

Comment(by csomor):

I used to have everything set-up to 72 dpi internally once for printing,
but in the meanwhile we really do have all information needed to truly
expose the real dpi of the printer, so I hope I'll get the ends to meet
again ..


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:6>

wxTrac

unread,
Jun 26, 2012, 12:43:31 PM6/26/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:7>

#14399: wxOSX-Cocoa incorrect printer output scaling
-----------------------------------------+----------------------------------
Reporter: johnr | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: wxOSX-Cocoa printer scaling | Blockedby:
Patch: 0 | Blocking:
-----------------------------------------+----------------------------------
Changes (by robind):

* owner: csomor =>
* status: accepted => new



--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:7>

wxTrac

unread,
Jun 26, 2012, 12:43:36 PM6/26/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:8>

#14399: wxOSX-Cocoa incorrect printer output scaling
-----------------------------------------+----------------------------------
Reporter: johnr | Owner: robind
Type: defect | Status: accepted
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: wxOSX-Cocoa printer scaling | Blockedby:
Patch: 0 | Blocking:
-----------------------------------------+----------------------------------
Changes (by robind):

* owner: => robind
* status: new => accepted



--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:8>

wxTrac

unread,
Jun 26, 2012, 2:25:31 PM6/26/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:9>

#14399: wxOSX-Cocoa incorrect printer output scaling
--------------------------+-------------------------------------------------
Reporter: johnr | Owner: robind
Type: defect | Status: closed
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Resolution: fixed | Keywords: wxOSX-Cocoa printer scaling
Blockedby: | Patch: 0
Blocking: |
--------------------------+-------------------------------------------------
Changes (by RD):

* status: accepted => closed
* resolution: => fixed


Comment:

(In [71866]) Don't hide the m_mm_to_pix_x and m_mm_to_pix_y in the base
class by redefining them in a derived class. Fixes #14399.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:9>

wxTrac

unread,
Jun 26, 2012, 2:54:36 PM6/26/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:10>

#14399: wxOSX-Cocoa incorrect printer output scaling
--------------------------+-------------------------------------------------
Reporter: johnr | Owner: robind
Type: defect | Status: closed
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Resolution: fixed | Keywords: wxOSX-Cocoa printer scaling
Blockedby: | Patch: 0
Blocking: |
--------------------------+-------------------------------------------------

Comment(by csomor):

perfect, thanks a lot :-)


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14399#comment:10>
Reply all
Reply to author
Forward
0 new messages