On 14-Apr-07, at 2:37 PM, Roger Meier wrote:

> You're correct about having to scale on windows. Whenever I want to  
> print at
> more than 72dpi, I usually scale the font sizes appropriately. But the
> default is, as far as I can tell, always 72dpi. I have written a  
> few apps
> that print text and graphics and tested on several platforms and  
> printers.
> So far the default always seems to be 72dpi. Up until this week I  
> have never
> used StyledTextPrinter to print, though.
>
> The weird thing about this particular problem is that if I remove  
> the line
> of code that prints the editfield contents (stp.DrawBlock 40,40,150),
> everything works fine. It is all the stuff that is printed AFTER  
> this line
> of code that gets messed up, and only on windows. Perhaps printing via
> StyledTextPrinter changes the print resolution on windows? If yes,  
> why?
>
> Roger

Not sure but whatever it's doing it's printing wrong

12 POINT should, by definition, be 12/72 of an inch ALWAYS regardless  
of DPI

But that's not how a lot of printing in RB is working when it comes  
to printing on resolutions higher than 72 so you always end up  
scaling text by resolution / 72

This is mentioned in the LR for PrinterSetup

something like

        Dim p as PrinterSetup
        p= New PrinterSetup
        If p.PageSetupDialog then
                g.TextSize = 12 * (p.VerticalResolution / 72 )
        end if

(I think ... it may be MaxVerticalResolution)

but you do have to scale it yourself
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to