Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

fontDialog [-FontList string]

fontDialog is undoable, queryable, and editable.

On Windows systems only, the command can be invoked with no flags; in this case it displays a font picking window, and returns the name of the font that the user picked. If the user picked no font, then an empty string is returned.

Return value

string

In query mode, return type is based on queried flag.

Flags

FontList
Long name (short name) argument types Properties
-FontList(-fl) string
This option is available on all platforms. No dialog is displayed; a list of all available font names is returned.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command

MEL examples

string $gString = `fontDialog`;
string $gStrings[] = `fontDialog -FontList`;