ASF Bugzilla – Attachment 35041 Details for
Bug 61169
Text with Japanese characters overflows textbox
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Java repro case
TextBoxOverflowWithJapanese.java (text/plain), 1.45 KB, created by
François Beaune
on 2017-06-09 09:27:54 UTC
(
hide
)
Description:
Java repro case
Filename:
MIME Type:
Creator:
François Beaune
Created:
2017-06-09 09:27:54 UTC
Size:
1.45 KB
patch
obsolete
>import java.awt.Rectangle; >import java.io.FileOutputStream; > >import org.apache.poi.xslf.usermodel.XMLSlideShow; >import org.apache.poi.xslf.usermodel.XSLFSlide; >import org.apache.poi.xslf.usermodel.XSLFTextBox; >import org.apache.poi.xslf.usermodel.XSLFTextParagraph; >import org.apache.poi.xslf.usermodel.XSLFTextRun; > >public class TextBoxOverflow { > public static void main(String[] args) throws Exception { > > XMLSlideShow slideShow = new XMLSlideShow(); > > XSLFSlide slide = slideShow.createSlide(); > > XSLFTextBox textBox = slide.createTextBox(); > XSLFTextParagraph paragraph = textBox.getTextParagraphs().get(0); > XSLFTextRun textRun = paragraph.addNewTextRun(); > textRun.setText( > "ã¡ãã£ã¨æ©ããã©Tã·ã£ããçãããªãå£ç¯â¡ãæ¯ããã®å½±é¿ããé常ã«æç«ã大好ãã§ãããã飼ãããããã大好ãã§ãã#ã¸ã¥ã©ã·ãã¯ã¯ã¼ã«ã ã®ã©ããã«4å§å¦¹ã¨ãæ¿çã«å¯æãã¦å¯æãã¦å¯æãã¦å¯æãã§ããããããã大好ãâ¡ãæ¯ãããæç«ã好ãã§ãå°ããé ãå¤ä»£çç©ã®å³éãä¸ç·ã«è¦ã¦ãã®æãåºããã¨ã"); > textBox.setAnchor(new Rectangle(50, 50, 200, 5000)); > textBox.resizeToFitText(); > > FileOutputStream out = new FileOutputStream("TextBoxOverflowWithJapanese.pptx"); > slideShow.write(out); > out.close(); > slideShow.close(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 61169
: 35041 |
35042
|
35059
|
35076