This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
Nifty  
#1 Posted : Tuesday, November 28, 2017 12:48:06 PM(UTC)
Nifty

Rank: Advanced Member

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

I can't get the FontRegistry.FallBackFonts to work. I get the error:

Aurigma.GraphicsMill.FontMissingException: 'MyriadPro-Regular'

Here is the code that I am using:

Code:
public byte[] RenderTemplate(byte[] psdBytes) {

    var fontCache = @"D:\Temp\PsdTests\_inputFiles\Fonts\cache";
    var customResolver = new FontResolver(fontCache);
    customResolver.FontRegistry.FallbackFonts.Add("Arial");
    customResolver.AddSource(new FileSystemSource(fontCache));

    var processor = new Aurigma.GraphicsMill.Templates.PsdProcessor(customResolver);
    
    using (var memIn = new MemoryStream(psdBytes))
    using (var memOut = new MemoryStream()) {

        var tt = new Aurigma.GraphicsMill.Codecs.JpegSettings();
        processor.Render(memIn, memOut, tt);

        return memOut.ToArray();

    }

}

I was assuming that I would not get the exception and the PsdProcessor would use the default "Arial"

I've attached the bday.psd I'm using for me tests.

bday.zip (600kb) downloaded 6 time(s).

Eugene Kosmin  
#2 Posted : Tuesday, November 28, 2017 3:53:49 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Guest
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
It just has not been released yet. This feature will be available with the next release, maybe in a day or two.

Best regards,

Eugene Kosmin

The Aurigma Development Team

Eugene Kosmin  
#3 Posted : Wednesday, November 29, 2017 2:02:56 AM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Guest
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Please check the last update 9.2.18.
Best regards,

Eugene Kosmin

The Aurigma Development Team

Nifty  
#4 Posted : Thursday, November 30, 2017 1:12:17 PM(UTC)
Nifty

Rank: Advanced Member

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

Working great, thanks!
Users browsing this topic
Guest (2)
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.