Skip to main content
Vikram_S
Known Participant
May 23, 2011
Question

Unable to undo applied embedded fonts

  • May 23, 2011
  • 1 reply
  • 860 views

Hello All,

I have application with text box created with  container controller and textflow.


Also I have applied embedded fonts dynamicaly using

styleManager.loadStyleDeclarations2(url,false);

but after this when I try to undo, previous font is not get applied.

When I debug the application, i fonund that generation is number is mismatch.

please anybady know why it is? When I apply different font size or any other property link color, Undo works properly.

Thanks,

Vikram

This topic has been closed for replies.

1 reply

Adobe Employee
May 24, 2011

Pls try BeginCompositeOperation/EndCompositeoperation APIs to group operations.

Adobe Employee
May 24, 2011

Undo can only undo those changes that are inside operations. If there are direct model changes (changes resulting from an API call that is NOT in an operation), this will cause a generation number mismatch. Undo will be blocked because the model has changed. I would suggest finding out what it is you are calling that is incrementing the generation number, but is not inside an operation.

- robin