Thanks for your reply,
but the problem still remains when I call the function for the first time (on my machine it takes about 30 seconds).
Could it be a solution to create the fontmap file in advance using the pdfDocument.IsTruetypeFontMapCached-attribute?
I tried to do this but a fontmap.xml file won't be created. Here is my code:
Aspose.Pdf.Pdf pdfDocument = new Aspose.Pdf.Pdf();
pdfDocument.IsTruetypeFontMapCached = true;
Aspose.Pdf.TextInfo textInfo = new Aspose.Pdf.TextInfo();
textInfo.FontSize = 4.8F;
textInfo.IsUnicode = true;
textInfo.FontName = "MS PGothic";
Aspose.Pdf.Text text = new Aspose.Pdf.Text("This is a Test!", textInfo);
float height = 0;
//need more time to create a fontmap file
height = text.GetTextHeight(pdfDocument, 100F);
The pdfDocument.TruetypeFontMapPath should be the path of the application by default, is that true?
Thanks