Skip to main content
dublove
Legend
August 21, 2026
Question

How to obtain the longest character with ":" and the offset value of the first character after ":"?

  • August 21, 2026
  • 0 replies
  • 4 views

I have chosen some regular text, and I want to get the horizontalOffset of the first character after the longest character ':'.

The horizontal offset of the word I circled in the picture.
May I ask how to write the code? 

Thank you very much.