Update Persian Text Without Characters Separating From Each Other

    Private psdstep1 As PsdImage = Aspose.PSD.Image.Load("config/PSDFiles/psdstep1.psd")                
    Using psdstep1
                    For Each layer As Layers.Layer In psdstep1.Layers
                        If TypeOf layer Is TextLayer Then
                            Dim textLayer As TextLayer = DirectCast(layer, TextLayer)
                            If textLayer.Name = "title" Then
                                textLayer.UpdateText("متن فارسی")
                            End If
                        End If
                    Next
             End Using

this is my code to update a farsi text layer but the characters get separated and backward how do i fix it ?

@mtmtaha

To update a Persian text layer in a PSD file without the characters separating or appearing backward, you need to ensure that the text rendering settings are correctly configured for right-to-left languages.

It seems that when using the Aspose.PSD library, the default settings may not handle Persian text properly, leading to issues with character separation and direction. Here are a few steps you can take to resolve this:

  1. Check Text Layer Properties: Ensure that the text layer properties are set to support right-to-left text. This may involve setting specific properties that dictate how the text is rendered.

  2. Use a Compatible Font: Make sure that the font you are using supports Persian characters and is capable of rendering them correctly. Some fonts may not support the necessary ligatures or character connections.

  3. Update Text with Proper Encoding: When updating the text, ensure that the string is encoded correctly. Sometimes, using Unicode encoding can help maintain the integrity of the text.

  4. Refer to Documentation: Check the Aspose.PSD documentation for any specific settings or methods that are recommended for handling right-to-left languages. There may be additional parameters or methods that need to be applied to the TextLayer.

If you continue to experience issues, consider looking into community discussions or examples that specifically address right-to-left text rendering in Aspose.PSD, as there may be additional insights or solutions shared by other users facing similar challenges.

For further assistance, you can refer to the following discussion where users have shared their experiences with rendering Persian text correctly in Aspose.PSD: Right To Left Text Rendering.

Sources:
[1]: Right To Left Text Rendering

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

Issue ID(s): PSDNET-2299

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.