Hello,
We are a company intending to use Aspose for Java for our business. We have procured a temporary license to test if it can satisfy our development requirements. However, we encountered some problems during its use:
- Issues with Font Installation:
Trying to install font family Microsoft YaHei Light at C:\WINDOWS\Fonts\msyhl.ttc to private collection
Font family Microsoft YaHei Light with style Regular is not available: please, try to reinstall this font
Trying to install font family SimSun at C:\WINDOWS\Fonts\simsun.ttc to private collection
Font family SimSun with style Regular is not available: please, try to reinstall this font
Trying to install font family NSimSun at C:\WINDOWS\Fonts\simsun.ttc to private collection
Font family NSimSun with style Regular is not available: please, try to reinstall this font
......................
Could you clarify why these fonts are not being installed? What could be the cause of this issue and how can we fix it?
- Issues with Missing Chinese Fonts and Corruption:
After executing certain operations using Aspose for Java, we found missing fonts and Chinese characters appearing as gibberish. Here are the operations we performed:
javaCopy code
PsdLoadOptions loadOptions = new PsdLoadOptions();
PsdImage image = (PsdImage) Image.load(psdtemplateFile.getPath() ,loadOptions);
for (Layer layer : image.getLayers()) {
TextLayer textLayer = (TextLayer) layer;
textLayer.updateText("标题标题标题标题标题标题", font.getSize());
// The textLayer here is indeed a TextLayer
}
String outputPsd = "C:/Users/wofbi/Downloads/outputpsd.psd";
image.save(outputPsd);
String outputPng = "C:/Users/wofbi/Downloads/outputpng.png";
image.save(outputPng,new PngOptions());
image.jpg (115.8 KB)
The output PNG image showed serious font issues: On the one hand, the font was changed; on the other hand, certain fonts turned into squares.
image.jpg (159.2 KB)
The output PSD file also has problems with the fonts. However, these issues disappear when we enter the editing mode.
image.jpg (130.0 KB)
It should be “大标题大标题大标题大标题”, not “大口口大口口大口口大口口”.
Attached are the original PSD file (input.psd) and the processed PSD and PNG files in the output directory.
input.zip (9.4 MB)
outputpsd_1689835627.zip (9.6 MB)
outputpng1689835644.zip (2.8 MB)
By the way, these issues do not occur with English text.
Opening this file in Photoshop gives the following prompt.
image.png (81.1 KB)
image.png (99.3 KB)
Could you please guide us on how to resolve these issues? If they cannot be resolved currently, is there any plan to fix them? Could you please provide the timeline for the specific fix?
Looking forward to your assistance on these matters.