FONT Function

Returns the integer value of the unique identifier for a font, specified by name.

Note

In most cases, the font identifier is system-specific. Although the font remains established once used in a file, the FONT function provides consistent access to a particular font across systems and versions of Visio. It is recommended that you use the FONT function to assign fonts instead of referring to font identifiers directly.

Version Information

Version Added: Visio 2013

Syntax

FONT( "font_name_string")

Parameters

Name Required/Optional Data Type Description
font_name_string
Required
string
The name of the font.

Return value

Integer

Remarks

If the string provided for font_name_string does not match a known font, this function returns a #VALUE! error.

Example

FONT("Calibri")

Returns the integer value (4) representing the unique ID for the "Calibri" font.