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).
|
|
|
|
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
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 10/12/2015(UTC) Posts: 44
|
|
|
|
|
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.