AttributeSet and StyledDocument's setCharacterAttributes with HTMLDocument
posted 15 years ago
Hey, Got an interesting problem here. I'm using setCharacterAttributes on an HTMLDocument to set up things like font size and family. This works as long as there is no current setting that was on the text when it was loaded. However, if the character range has a current setting from the document load, then it won't be modified by the new one. The result is that once my user makes a choice about text style and saves and reopens the document, they are stuck with it! Has anyone seen this? Have a solution?