Psd文件转换中文字体格式错乱

代码很简单:
InputStream psdInput = TestPsd.class.getResourceAsStream("/PSD/sample2.psd");
PsdLoadOptions psdLoadOptions = new PsdLoadOptions();
psdLoadOptions.setReadOnlyMode(false);
psdLoadOptions.setLoadEffectsResource(true);
PsdImage image = (PsdImage) PsdImage.load(psdInput, psdLoadOptions);
Layer[] layers = image.getLayers();
System.out.println(“layer size:” + layers.length);
for (Layer layer : layers) {
if (layer instanceof TextLayer) {
TextLayer textLayer = (TextLayer) layer;
textLayer.updateText(“Hello World好的”);
}
JpegOptions jpegOptions = new JpegOptions();
image.save("/Users/hehe/tmp/result.jpg", jpegOptions);

期望的是这样的结果:
image.jpg (298.8 KB)

但是转换出来的却是:
image.jpg (184.0 KB)

检查过字体安装,以及 textData 对象中的 style 字体名称,也是正确的字体,但是转换结果里面的中文样式不正确。

@ZcyDevOp 您能提供输入的 psd 文件吗

我们在内部问题跟踪系统中打开了以下新票证

@ZcyDevOp
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PSDNET-1746

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.