https://bz.apache.org/bugzilla/show_bug.cgi?id=64999

--- Comment #2 from fanjiajia <[email protected]> ---
Version : 4.1.2

Maven confih: 
...
 <poi.version>4.1.2</poi.version>

...
<dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi</artifactId>
            <version>${poi.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-scratchpad</artifactId>
            <version>${poi.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>${poi.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml-schemas</artifactId>
            <version>${poi.version}</version>
        </dependency>
...


My java code:

XDDFFont[] fonts = new XDDFFont[2];
                fonts[0] = new XDDFFont(FontGroup.EAST_ASIAN,
StringUtils.isBlank(fontStyle.getEastAsianFontFamily()) ?
Constant.DEFAULT_EA_FONT :
                        title.getFont().getEastAsianFontFamily(), null, null,
null);
                fonts[1] = new XDDFFont(FontGroup.LATIN,
StringUtils.isBlank(fontStyle.getFontFamily()) ? Constant.DEFAULT_EN_FONT :
                        title.getFont().getFontFamily(), null, null, null);
                XDDFRunProperties xddfRunProperties = new XDDFRunProperties();
                xddfRunProperties.setFonts(fonts);

If I set LATIN to fonts[0],EAST_ASIAN font will override LATIN font.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to