pymel.core.windows.fontDialog

fontDialog(*args, **kwargs)

Displays a dialog of available fonts for the user to select from. The name of the selected font is returned, or an empty string if no font was selected. When the FontListflag is used, no dialog is displayed. Instead the command returns an array of the available fonts.

Flags:

Long Name / Short Name Argument Types Properties
FontList / fl bool ../../../_images/create.gif
  Returns an array of all available font names. No dialog is displayed.
scalable / sc bool ../../../_images/create.gif
  Limits the fonts returned or displayed to just those that are scalable. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.fontDialog

Example:

import pymel.core as pm

font = pm.fontDialog()
print font;

fonts = pm.fontDialog(FontList=True)
print fonts;