Hi,
I am trying to check if a particular font is installed on the user's PC. Currently I am doign this:
Code:
__FontName = "Arial Unicode MS";
string _fontName = "";
System.Drawing.Font font = new System.Drawing.Font("Arial Unicode MS", 12);
if (font.Name == __FontName)
{
MigFont = new MigraDoc.DocumentObjectModel.Font("Arial Unicode MS");
_fontName = "Arial Unicode MS";
}
else
{
MigFont = new MigraDoc.DocumentObjectModel.Font("Arial");
_fontName = "Arial";
}
but this only seems to pick up if the font is installed on the server the code is deployed on. Is there as way in .NET i can check (and use) if the font is installed on the users PC? I cant add the font to the server becuase it is Arial Unicode and licenced, so i dont want to infringe that.
thanks,
Mike