Skip to main content
Known Participant
August 4, 2010
Question

Issues in identifying text line height in TLF

  • August 4, 2010
  • 1 reply
  • 518 views

Hi - We have our code logic to determine line height as below.

textFlow.flowComposer.getLineAt(0).textHeight

But we receive a value of NaN for some of the text areas vs getting values for most of them. Can someone help is identify what could go wrong as to why would we receive NaN for text height?

Let me know if you need more information.

Thanks & Regards,

Magesh

This topic has been closed for replies.

1 reply

Adobe Employee
August 5, 2010

What is the value of the getLineAt(0).validity? If it is not VALID, I'd suggest you try calling updateAllControllers(). I don't know if this explains your problem, but it seems like a possible cause.

Thanks,

- robin