From: Andreas Beeker Date: Thu, 31 Dec 2015 23:49:34 +0000 (+0000) Subject: #55030 - RichTextRun getFontName can not get Chinese font name X-Git-Tag: REL_3_14_FINAL~122 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=720db41739a4b9564e33e9912b40636f59ddaf52;p=poi.git #55030 - RichTextRun getFontName can not get Chinese font name git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722479 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java index 8460a5b979..f1443ccfe0 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java @@ -680,10 +680,16 @@ public final class HSLFTextParagraph implements TextParagraph paraList : sl.getTextParagraphs()) { + for (HSLFTextParagraph htp : paraList) { + for (HSLFTextRun htr : htp) { + String actFamily = htr.getFontFamily(); + assertEquals(expFamily, actFamily); + } + } + } + + ppt.close(); + } private static HSLFSlideShow open(String fileName) throws IOException { File sample = HSLFTestDataSamples.getSampleFile(fileName); diff --git a/test-data/slideshow/bug55030.ppt b/test-data/slideshow/bug55030.ppt new file mode 100644 index 0000000000..1f2f22b004 Binary files /dev/null and b/test-data/slideshow/bug55030.ppt differ