| PDFsharp & MigraDoc Forum https://forum.pdfsharp.net/ |
|
| font installed on client pc https://forum.pdfsharp.net/viewtopic.php?f=2&t=974 |
Page 1 of 1 |
| Author: | mikesowerbutts [ Tue Dec 08, 2009 10:09 am ] |
| Post subject: | font installed on client pc |
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 |
|
| Author: | Thomas Hoevel [ Tue Dec 08, 2009 12:19 pm ] |
| Post subject: | Re: font installed on client pc |
Hi! I presume you are using ASP.NET. The code runs on the server and can only use fonts installed on the server. |
|
| Author: | mikesowerbutts [ Tue Dec 08, 2009 12:21 pm ] |
| Post subject: | Re: font installed on client pc |
Hi, Yes i am using ASP.NET - I didnt realise that was the case. Its fair enough though... Thanks anyway, Mike |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|