Hello team,
I’m trying chage font for textlayer in psd but I have many issues with it.
I use Font Name : Lobster , Caveat ,Satisfy ,Gochi Hand , …
- After update textlayer , 2 text not on the same line
- Charactor in text is not space or space verry large for each charactor in text.
-> You can replicate the issue if you update textlayer by manually and compare it after run by code.
I also attach file Aspose.rar in link (video to show the issue and psd file to replicate) : https://drive.google.com/file/d/1wlI0RIqyrB_R56dIibE0khVUONPIbqjc/view?usp=sharing
Code :
var fontColor = Color.FromArgb(Ultils.GetArgbColor(fontInfor.ColorCode));
layer.UpdateText(custom.Value, fontColor);
foreach(var item in layer.TextData.Items)
{
item.Style.FontName = fontInfor.FontName;
item.Style.FontSize = layer.Font.Size;
}
layer.TextData.UpdateLayerData();
I counted the number of error fonts
image.png (8.3 KB)
Font error make me cannot send product to my customer and It affect the company’s revenue. Please help me to investigate and fix it as soon as posible
Thanks.