FontsInstalled Property (.NET)

 

Type: String

 

Returns a comma delimited list of font names installed on the visitor's system, based on how the FontsToCheck property is set. If FontsToCheck is set to a list of font names, then FontsInstalled will contain a list of those fonts which BrowserHawk determines are installed. If FontsToSet is set to "ALL", then FontsInstalled will be set to all font names on the visitor's system.

 

Note: Use of this property requires the Professional or Enterprise Edition of BrowserHawk.

 

Example (checking a specific set of fonts):

<%

ExtendedOptions options = new ExtendedOptions();

options.AddProperties("FontsInstalled");

options.FontsToCheck = "arial, verdana, times";

ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);

%>

<html>

In checking to see if Arial, Verdana, and Times is installed, BrowserHawk has determined that the following out of that list is installed:

<% Response.Write(extBrow.FontsInstalled); %>

</html>

 

Example (getting a list of all fonts installed):

<%

ExtendedOptions options = new ExtendedOptions();

options.AddProperties("FontsInstalled");

options.FontsToCheck = "all"; // Note that "all" is not case sensitive

ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);

%>

<html>

The following fonts are installed: <P>

<% Response.Write(extBrow.FontsInstalled); %>

</html>

 

Tip: See the source for the BrowserHawk fontcheck.aspx sample (\Program Files\cyScape\BrowserHawk\samples\dotnet) for more details on detecting fonts with BrowserHawk and a full example.

 

Special notes for this property:

 

See Also:

GetFontInstalled Method (.NET)

FontSize Property (.NET)

TextSize Property (.NET)