Possible bug concerning FX #ZOOMWEST on macOS

Report any Hollywood bugs here
Post Reply
User avatar
mrupp
Posts: 147
Joined: Sun Jan 31, 2021 7:44 pm
Location: Switzerland
Contact:

Possible bug concerning FX #ZOOMWEST on macOS

Post 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
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Possible bug concerning FX #ZOOMWEST on macOS

Post by airsoftsoftwair »

Yes, looks like a bug. Will be fixed.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Possible bug concerning FX #ZOOMWEST on macOS

Post 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
Post Reply