Recent

Author Topic: Catalina Printing...  (Read 414 times)

Frank

  • Jr. Member
  • **
  • Posts: 65
Catalina Printing...
« on: February 11, 2020, 09:36:38 pm »
Hi All, The office informed me my program is doing something odd.

It is a Windows / macOS program and uses the Printers.pas file for some printing. The Windows version prints fine, & up until a bit ago, so did the macOS ( running on Mojave). But now with the upgrade Catalina, the fonts print out 4 times normal size. All of the layout is still ok... A simple "FontSize div 4" allows for correct printing.

Has anyone run into this ? Is it Catalina? Cocoa widgetset? FPC?

Not sure where to file bug report, if that is deemed appropriate thing to do...

Edit: I'd check the bug tracker, but I seem to be locked out...
« Last Edit: February 11, 2020, 09:46:00 pm by Frank »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2435
    • havefunsoft.com
Re: Catalina Printing...
« Reply #1 on: February 11, 2020, 11:56:06 pm »
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Frank

  • Jr. Member
  • **
  • Posts: 65
Re: Catalina Printing...
« Reply #2 on: February 12, 2020, 12:05:03 pm »
I'm not sure...  Those issues seem to focus on page size issues.
For me the calculated page size (my code) appear correct.
 
I set "Printer.Canvas.Font.Size", then call "Printer.Canvas.TextOut(X, Y, Text);".
This produces text 4 times the proper size, but in correct position.

The X & Y are calculated percentage values relative to page size, that is to say that if the page size was wrong, so would be the positioning of text on the page. But that doesn't seem to be the case.

EDIT: I retract that, because of "calculated percentage values", it could position it correctly if the "page size" is 4 times the size I'm expecting.

Question: page size "US Letter 8.5x11" , the 8.5" is no longer 612 dots ?


Oh, & I remembered my Mantis Tracker login, so I can create bug if necessary

 
« Last Edit: February 12, 2020, 12:19:23 pm by Frank »

Frank

  • Jr. Member
  • **
  • Posts: 65
Re: Catalina Printing...
« Reply #3 on: February 12, 2020, 12:51:21 pm »

... please disregard this thread...

updated source to revision 62624 & printing works as expected...

As always, thanks Dmitry for your excellent work



 

TinyPortal © 2005-2018