LayerAPI.overrideDefaultAnnoFontName

 

long overrideDefaultAnnoFontName(string fontName)

This method sets the current annotation font for the layer to fontName.  Valid values of fontName are any of the elements of the comma-separated list obtained by calling ProgramAPI.getFontList.

The font defined via this method will be used during all subsequent calls to doAnnotation for this layer.

This method returns 0 upon success, and returns an error code if fontName is invalid.