1 Reply Latest reply on Mar 13, 2008 6:11 AM by OskarF

    Which is faster? getCharBoundaries or getLineMetrics


      I need to get hold of the vertical position and height of a text character. This is possible to do using TextField.getCharBoundaries() but this method is rather slow so I have looked into other possibilities. One way to do it would be to get hold of the line index of the character with TextField.getLineIndexOfChar() and then iterate over the text lines and examine their heights using TextField.getLineMetrics().
      What I would like to ask is if I can expect an increased efficiency using the second method compared to the first.

      I am of course interested in other ways to get hold of the same information.