Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Nifty  
#1 Posted : Friday, January 12, 2018 9:43:45 AM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

Back with another PsdProcessor question. I've tried to simplify my code so someone can copy and paste it, run and see the problem.

I've got a text layer that has a variable placeholder of "{txt2}". Depending on what I replace it with, the text renders in reverse order. Below are the code examples that shows the issue.

Code:
static void correct() {

    var customResolver = new FontResolver(@"D:\Temp\PsdTests\FontCache");
    customResolver.FontRegistry.FallbackFonts.Add("Arial");

    var psdProcessor = new PsdProcessor(customResolver);

    psdProcessor.StringCallback = (processor, textFrame) => {

        var newText = textFrame.Text;

        // A string of "Two" works
        newText = newText.Replace("{txt2}", "Two");
        newText = newText.Replace("{txt}", "Name");

        return newText;

    };

    psdProcessor.Render(@"D:\Temp\drive.psd", @"D:\Temp\correct.jpg");

}

static void incorrect() {

    var customResolver = new FontResolver(@"D:\Temp\PsdTests\FontCache");
    customResolver.FontRegistry.FallbackFonts.Add("Arial");

    var psdProcessor = new PsdProcessor(customResolver);

    psdProcessor.StringCallback = (processor, textFrame) => {

        var newText = textFrame.Text;

        // The string "2" renders incorrectly.
        newText = newText.Replace("{txt2}", "2");
        newText = newText.Replace("{txt}", "Name");

        return newText;

    };

    psdProcessor.Render(@"D:\Temp\drive.psd", @"D:\Temp\incorrect.jpg");

}


Please know that I don't just post the issues as soon as I run across them. I've tried using the TextCallback and examining the HTML string that is in the textFrame.String property and such, but I can't figure out how to make this work.

You guys are very good at fixing or providing a workaround, but there is a time delay so I really do try and solve the problems on my own. I've attached the drive.psd that I'm using, along with the two images so you can see the output.

We are trying to adjust our Photoshop files to deal with the weird rendering of the paths, but we can't work around the incorrect rending of the text, any pointers would be greatly appreciated.

Thanks again for your help.

drive.zip (719kb) downloaded 8 time(s).correct.jpgincorrect.jpg
Andrey Semenov  
#2 Posted : Tuesday, January 16, 2018 1:35:07 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups:
Joined: 7/4/2017(UTC)
Posts: 43

Was thanked: 12 time(s) in 12 post(s)
What I've found after checking your template:
  1. Right-To-Left Paragraph Direction is checked in paragraph settings for "{txt} MILES" layer for some reason (see attached screenshot). It is usually used for arabic texts. After changing this to Left-To-Right, template started to be rendered normally (please found fixed template attached).
    Read more about enabling this feature in Photoshop here: https://forums.adobe.com/thread/1315628
  2. For "{txt}" layer, all caps feature is switched on, but it is not supported by Graphics Mill.
  3. As for the rendering of the paths, I've reproduced this bug and it should be fixed in future releases.
Regards,
Andrew

rtl.png
drive_fixed.zip (743kb) downloaded 6 time(s).

Edited by user Monday, January 22, 2018 6:09:26 PM(UTC)  | Reason: Not specified

Nifty  
#3 Posted : Monday, January 22, 2018 5:28:00 PM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

Thanks. I'll keep an eye out for the future release.
Nifty  
#4 Posted : Monday, January 29, 2018 9:41:46 AM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

I saw there was an update on 1/27/2018. Did that update include a fix for the rendering paths?
I searched around for a list of updates or enhancements associated with the update but didn't find anything.
Julia Khoptyan  
#5 Posted : Thursday, February 1, 2018 2:22:23 AM(UTC)
Julia Khoptyan

Rank: Advanced Member

Groups:
Joined: 8/19/2016(UTC)
Posts: 33

Was thanked: 1 time(s) in 1 post(s)
Hey Nifty,

Thank you for the report! The Graphics Mill project manager is already looking into the problem with missing changelogs.

In the meanwhile:

Version 9.3.7 - Released January 27, 2018

New Features and General Improvements
* Added a possibility to create PDF files in the extended format (16 bits per channel).

Bug Fixes
* Fixed a problem with changing line width when merging PDF files.

Thanks,
Julia
Nifty  
#6 Posted : Tuesday, March 6, 2018 8:24:30 AM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

I saw the update today that included the bug fix:

* Fixed a problem with rendering ellipses

I tested the new version of the component and wanted to ask/confirm that this is NOT the fix for our problem above "rendering of text on the path". I just wanted to make sure that I'm on the same page and you guys didn't assume that this bug was fixed.

Regards,

Brian
Eugene Kosmin  
#7 Posted : Tuesday, March 6, 2018 7:56:54 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hi Brian,

No, that is a fix for DrawEllipse method. We had a typo in an equation for ellipse approximation, and now it has been fixed.

Your issue requires much more effort. For GM "scale" properties are just an add-on for the text-transform matrix, whereas Photoshop applies it only to text, remaining text path untouched. An easy fix is not possible. I'm not sure when it will be ready.

I can advise you to keep scales at 100%.
Best regards,
Eugene Kosmin
The Aurigma Development Team
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.