Hi all,

I am using POI to change some text from ppt files. The change part works
perfect. I iterate over the slides, get textRuns, then get richTextRuns and
lastly set new text. But i have a problem. When there are more than one
richtextruns in a text run if i change the text i can't keep the same
character style (font, colour etc.). I will try to explain that with an
exampe. Say i have a text with bullet:

*Bold Example text with font Tahoma, red and italic example text with font
Times New Roman

POI parses that text into two richTextRuns as expected. When i change some
words in the text (I get the text form richtextrun and then set it with new
one), it changes correctly but i lost the font style and colour of both
richTextRuns. The text becomes raw, and font turns to Arial as colour turns
to black. This situation happens only when there are different richTextRuns
in textRun and when i try to change text in it. Is this a bug or a
limitation of POI? Or am i doing something wrong?
-- 
View this message in context: 
http://www.nabble.com/RichTextRun.setText-works-great-but-can%27t-keep-the-same-character-style-tp24193351p24193351.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to