Skip to main content
Known Participant
Aug 4, 2010 2:32 PM UTC
Question

Issues in identifying text line height in TLF

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Adobe Employee
Aug 5, 2010 1:30 AM UTC

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

Translate