Help! I still don't know how to set printer scale!!

hi, I found that epson ink-jet printer dc.GetSizeTuple() return value is w=2976 & h=3720 printout correct font size that I want, so I use it as a factor to calculate the scale when using HP ink-jet printer, but the result is not the same, HP printout character size is still a little bit bigger than epson, am I use a wrong way to calculate the scale for different printer? anyone can give me a complete example to set printer scale?? thx.

        dc = self.GetDC()
        (dcX, dcY) = dc.GetSizeTuple() # get value from HP ink-jet
        dc.SetUserScale(float(dcX/2976.0), float(dcY/3720.0)) # base on epson ink-jet, I use 2976 & 3720 as a factor to calculate HP ink-jet scale

Viking wrote:

hi, I found that epson ink-jet printer dc.GetSizeTuple() return value is w=2976 & h=3720 printout correct font size that I want, so I use it as a factor to calculate the scale when using HP ink-jet printer, but the result is not the same, HP printout character size is still a little bit bigger than epson, am I use a wrong way to calculate the scale for different printer? anyone can give me a complete example to set printer scale?? thx.

        dc = self.GetDC()
        (dcX, dcY) = dc.GetSizeTuple() # get value from HP ink-jet
        dc.SetUserScale(float(dcX/2976.0), float(dcY/3720.0)) # base on epson ink-jet, I use 2976 & 3720 as a factor to calculate HP ink-jet scale

Does GetSizeTuple return the same values on the HP?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!