Free Support Forum - aspose.com

Brush Script font is not supported

I have in my application a lot of different types of fonts like BrushScript, MyriadPro etc- A lot of them are not supported by Aspose. This is discouraging to use Aspose. Error says Brush Script Mt or BrushScriptItalic.ttf not found when I try to save the pdf. Please help.


This message was posted using Page2Forum (attachment) from font not supported - Aspose Search Results - Aspose.com

Hi,

I can reproduce the problem at my side, and I have logged this issue as PDFNET-10767. I think it can be resolved in about 3 weeks.

Thanks.

Hello shraddha,

Thanks for considering Aspose.

After investigating this issue in details, we've come to the conclusion that we're unable to notice the "Font not found" issue. In fact the Brush Script MT font is correctly being used in resultant PDF document. First I've installed the Brush Script MT font over my machine and tested the scenario using following code snippet and the resultant PDF that I've generated, is in attachment. Please take a look.

[C#]

Pdf pdf1 = new Pdf();
Aspose.Pdf.Section sec1 = pdf1.Sections.Add();
Text text2 = new Text(sec1);
text2.Margin.Top = 30;
sec1.Paragraphs.Add(text2);
Segment segment2 = text2.Segments.Add("This is TrueType font in Brush Script MT.");
segment2.TextInfo.FontSize = 20;
segment2.TextInfo.FontName = "Brush Script MT";
pdf1.Save("d:\\pdftest\\new_Brush Script MT.PDF");

PS, I've tested the issue using Aspose.Pdf for .NET v4.1.0.0