getNotesFont (NotesRichTextItem - JavaScript)

Returns an identifier for a font face in a document.

Defined in

NotesRichTextItem

Syntax

getNotesFont(facename:string, addonfail:boolean) : int
Parameter Description
facename The name of the font face, which must be valid for the platform on which the agent is running.
addonfail
  • true to assign an identifier for the font face if one is not already assigned in the current document
  • false (default) to return 0 if an identifier is not assigned for the font face in the current document
Return value Description
int The identifier associated with the specified font face, or 0.

Usage

The identifier can be used to set Font in NotesRichTextStyle.

Identifiers assigned by this method are in the range 5 through 254.