Page 1 of 1

Possible bug concerning FX #ZOOMWEST on macOS

Posted: Sat May 21, 2022 6:00 pm
by mrupp
Hi there

I might have encountered a bug that only affects macOS. It concerns the #ZOOMWEST FX if used on a text object that starts with spaces.
Please check out the following example:

Code: Select all

@APPTITLE "Zoom-West-Test"

@FONT 1, "Courier New Bold", 90

EnableLayers()
UseFont(1)
SetFontStyle(#ANTIALIAS)
names = { "    Name1    ", "    Name2    ", "    Name3    " }
For i = 0 To ListItems(names) - 1
  CreateTextObject(1, names[i])
  DisplayTextObjectFX(1, 0, 100, { Type = #ZOOMWEST })
  Wait(2, #SECONDS)
  RemoveLayerFX(1, { Type = #ZOOMEAST })
  FreeTextObject(1)
Next
The effect I wanted to create is a text object that is zoomed-in from the very west and zoomed-out to the very east.
This works perfectly on Windows and AmigaOS 4.1, but on macOS, the text seems to be trimmed and therefor appears at the wrong position:

Windows:
Image

AmigaOS 4.1:
Image

macOS:
Image

Cheers,
Michael

Re: Possible bug concerning FX #ZOOMWEST on macOS

Posted: Sat May 28, 2022 1:22 pm
by airsoftsoftwair
Yes, looks like a bug. Will be fixed.

Re: Possible bug concerning FX #ZOOMWEST on macOS

Posted: Mon Jan 30, 2023 10:15 pm
by airsoftsoftwair
So this wasn't really a bug in #ZOOMWEST but a bug in Hollywood's native macOS text engine using Apple's Core Text interface. Fixed now.

Code: Select all

- Fix [macOS/Cocoa]: Leading spaces were cropped when using the native, Core Text-based macOS text engine