FontsInstalled Property

 

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.

 

Example (checking a specific set of fonts):

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "FontsInstalled"

bhObj.FontsToCheck = "arial, verdana, times"

bhObj.GetExtPropertiesEx

%>

<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 bhObj.FontsInstalled %>

</html>

 

Example (getting a list of all fonts installed):

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "FontsInstalled"

bhObj.FontsToCheck = "all" 'Note that "all' is not case sensitive

bhObj.GetExtPropertiesEx

%>

<html>

The following fonts are installed: <P>

<% Response.Write bhObj.FontsInstalled %>

</html>

 

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

 

Special notes for this property:

 

See Also:

FontInstalled Method

FontSize Property

TextSize Property