Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AttributeSet and StyledDocument's setCharacterAttributes with HTMLDocument  RSS feed

 
Chris Smith
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!