Summary: | Problems with accents and master page font | ||
---|---|---|---|
Product: | POI | Reporter: | fastlock <nbodin78> |
Component: | HSLF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | CC: | nbodin78 |
Priority: | P2 | ||
Version: | 3.8-dev | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: |
Example
Without accents : |
Description
fastlock
2011-11-09 17:02:52 UTC
Created attachment 27915 [details]
Example
Created attachment 27916 [details]
Without accents :
Same result after removing accents
I can't reproduce it. Here is my test code and all accents are OK in the output: SlideShow ppt = new SlideShow(); Slide slide = ppt.createSlide(); TextBox shape = new TextBox(); RichTextRun rt = shape.getTextRun().getRichTextRuns()[0]; shape.setHorizontalAlignment(TextBox.AlignLeft); rt.setFontName("Times New Roman"); shape.setText("Helloworld é è ë ê à ö ï î ô ü û"); rt.setFontSize(16); shape.setAnchor(new java.awt.Rectangle(495, 375, 210, 115)); slide.addShape(shape); FileOutputStream out = new FileOutputStream("52164.ppt"); ppt.write(out); out.close(); Can you post Java code that generates problematic output with missing accents? if it requires a template, then attach it as well. Yegor I also can't reproduce the error and there wasn't any response, so I'm closing this as "works for me" This was my test code: public void bug52164() throws IOException { HSLFSlideShow ppt = new HSLFSlideShow(); HSLFSlide sl = ppt.createSlide(); HSLFTextBox tb = sl.createTextBox(); tb.getTextParagraphs().get(0).getTextRuns().get(0).setFontFamily("Cambria"); tb.setText("Helloworld é è ë ê à ö ï î ô ü û"); tb.moveTo(100, 100); FileOutputStream fos = new FileOutputStream("bla.ppt"); ppt.write(fos); fos.close(); ppt.close(); } |