Skip to main content
Known Participant
September 10, 2010
Question

applyLeafFormat not working if span text is empty

  • September 10, 2010
  • 1 reply
  • 939 views

Hi - We have a text area, where we can type in text, change font, size etc.  The change font or color uses applyLeafFormat. It works fine if there is some text. If the span text is empty, change font or size does not work. here is what am doing for change font size. Pls guide me whats wrong and why is it not working if there is no text .

                var tlf:TextLayoutFormat = new TextLayoutFormat();
                tlf.fontSize = int(newFontSize);
                var editManager:IEditManager = textFlow.interactionManager as IEditManager;
                textFlow.interactionManager.selectAll();
                editManager.applyLeafFormat(tlf);
                textFlow.interactionManager.selectRange(textFlow.interactionManager.absoluteEnd, textFlow.interactionManager.absoluteEnd);
                textFlow.interactionManager.setFocus();

This topic has been closed for replies.

1 reply

Adobe Employee
September 10, 2010

I agree that's a bug.  Got it logged.

Thanks,

Richard

MageshRAuthor
Known Participant
September 11, 2010

Hi - Can you get me the bug # so that I can track the status of the bug.


Adobe Employee
September 13, 2010

The bug number is 2716695.  Note: its not available to track on jira - TLF is an internal bug system.  When the bug is fixed the relase notes will be updated.

Richard