With the code above, the entire diagram is redrawn with the right font. However, it prints a lot of “Change not within a transaction…” messages in the console.
When I wrap the call to rebuildParts() in a transaction, nothing happens (the old font remains in the diagram because the diagram didn’t actually re-draw itself).
That’s surprising. I’m unable to do anything with TypeKit and fonts, but when doing somethking similar involving loading images for Pictures, executing the rebuildParts within a transaction continued to re-create all of the nodes and links.
Is there a way that you can make a test app available to us?
Diagram.rebuildParts definitely removes all nodes and links that are modeled and then re-creates all of the nodes and links from the model data and performs any layout again.
That doesn’t seem to be the case - the entire content on my app changes, other than that of the diagram. I even delayed that event by 1 second after it’s actually called using setTimeout.