@FontList (Formula Language)

Provides a list of available fonts on the Notes® client where this @function is executed.

Note: This @function is new with Release 5.

Syntax

@FontList

Return value

availablefont

Text list. All the available font names. For "Default Serif", "Default Sans Serif", and "Default Monospace" fonts, @FontList returns alias values as follows:

  • Default Serif, 0
  • Default Sans Serif, 1
  • Default Monospace, 4

Examples

  1. The following formula returns a list of font names such as "Arial" : "Courier" : "Default Sans Serif|1" : "Default Serif|0" : "Default Monospace|4" : "Times New Roman........."
    @FontList
  2. The following code, when added to the "Change font" hotspot button on a form enables the user to apply the font they select from the "fontList" listbox field to the text in the "Body" rich text field.
    @Command([EditGoToField];"Body");
    @Command([EditSelectAll]);
    @Command([TextSetFontFace];fontList)

    To display the fonts available to the user in the fontList field, set the field Type to a list field, by choosing Listbox or Dialog list, for example. On the control tab of the Field Properties box, select the Use formula for choices option and enter the following formula:

    @FontList

Usage

Use @FontList as the keyword formula for a list field to display a list of fonts that are available on to the users.

This function does not work in Web applications.

Examples

  1. The following formula returns a list of font names such as "Arial" : "Courier" : "Default Sans Serif|1" : "Default Serif|0" : "Default Monospace|4" : "Times New Roman........."
    @FontList
  2. The following code, when added to the "Change font" hotspot button on a form enables the user to apply the font they select from the "fontList" listbox field to the text in the "Body" rich text field.
    @Command([EditGoToField];"Body");
    @Command([EditSelectAll]);
    @Command([TextSetFontFace];fontList)

    To display the fonts available to the user in the fontList field, set the field Type to a list field, by choosing Listbox or Dialog list, for example. On the control tab of the Field Properties box, select the Use formula for choices option and enter the following formula:

    @FontList