Free Support Forum - aspose.com

Incorrect text spacing in file saved by Aspose.PSD (C# .NET)

Hi!

We would like to be able to change the text in the source.psd file from the archive attached.However we have some issues with the target file after running:

AsposeLicenser.LoadLicense();
var sourceFile = @"d:\work\psd\source.psd";
var targetFile = @"d:\work\psd\target.psd";

using (var image = (PsdImage) Image.Load(sourceFile))
{
    var textLayer = (TextLayer)image.Layers.Single(layer => layer is TextLayer);
    //...
    textLayer.TextData.UpdateLayerData();

    image.Save(targetFile, new PsdOptions(image));
}

The font spacing is incorrect in the target.psd file generated:
image.png (6.5 KB)

Note that after focusing the text using the Horizontal Type Tool, it gets back to normal:
image.png (4.0 KB)

Normally, we would try to change the text in the text layer in the zone marked with the “//…” comment but the target file would have the same issue. Is this a bug, or are we doing something wrong?

files.zip (91.0 KB)

Thanks for any help!
Arnold

@arnoldbeilandevozon,

After observing the information provided by you it seems to be an issue and a ticket with ID PSDNET-663 has been created to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

Hi. Do you have any updates on this issue?

@arnoldbeilandevozon

I regret to share that at present the issue is unresolved. It is tentatively going to get resolved in Aspose.PSD for .NET 20.9 which is scheduled for end of September 2020.