I am using NET20 and need to determine if font is installed on users
machine?

TIA

Re: Determine if font is insalled by Matt

Matt
Fri Dec 14 03:16:54 PST 2007

On 14 Dec, 08:56, "Jared Crystal" <ja...@crystal.com> wrote:
> I am using NET20 and need to determine if font is installed on users
> machine?
>
> TIA

This should do the trick:

using System.Drawing.Text;


public bool fontIsInstalled(string fontName)
{
bool result = false;
InstalledFontCollection installedFontCollection = new
InstalledFontCollection();

foreach (FontFamily family in
installedFontCollection.Families)
{
if (family.Name == fontName)
{
result = true;
break;
}
}

return result;
}