Skip to main content
Participant
May 20, 2023
Open for Voting

sourceRectAtTime option of not ignoring whitespace characters at beginning or end of string

  • May 20, 2023
  • 0 replies
  • 124 views

Currently sourceRectAtTime ignores whitespace characters at the beginning and/or end of referenced text layers.
eg
The reported width of "Sample Text" and "   Sample Text   " are the same since it is only looking at rendered pixels.

I am having to write a bunch of extra code to account for this and think it would be great if there were just another arguement within the sourceRectAtTime method you could flag that would consider the width of whitespace characters or not depending if set as true.