fonts

fonts property

Retrieves a collection of all the system-supported fonts.

Syntax

JavaScript

p = object.fonts

 

Property values

Type: Object

A collection of system-supported fonts.

Standards information

There are no standards that apply here.

Examples

The following example displays the total number of system fonts, and then displays a list of their names.



function testFonts()
{
var a=dlgHelper.fonts.count;
	console.log(a); //show total number of system fonts
for (i = 1;i < dlgHelper.fonts.count;i++)
	{ 
		
		var f= f  + "  " + dlgHelper.fonts(i) 
	} 
	console.log(f); //show names of all system fonts
}

 

 

Show:
© 2016 Microsoft