NotesFont or GetNotesFont

How do I get a default sans serif font in NotesRichTextStyle object? What is the number that assigns it in richStyleLABELS.NotesFont = some numeric value…

or

What is the string text ‘X’ to type in on the rti.GetNotesFont( X, True ) for Default Sans Serif???

Any suggestions appreciated…

Set richStyleLABELS = sess.CreateRichTextStyle

richStyleLABELS.NotesFont = 7

'rti.GetNotesFont(“Default Sans Serif”, True)

richStyleLABELS.FontSize = 10

richStyleLABELS.NotesColor = 10 ’ COLOR_DARK_BLUE

richStyleLABELS.Bold = True

Thanks,

jlh

Subject: NotesFont or GetNotesFont

From Designer Help…

NotesFont property:

FONT_COURIER (4)

FONT_HELV (1)

FONT_ROMAN (0)

STYLE_NO_CHANGE (255) to maintain the previous state (default)

As far as GetNotesFont, you can’t just use “Default Sans Serif” - it requires an actual font name, valid to the platform the script is running on. On Windows for R6x, the default sans-serif font is Microsoft Sans Serif. R5x, it’s MS Sans Serif. On the Mac, it’s (usually) Geneva.

Subject: RE: NotesFont or GetNotesFont

Yes, I saw the help.

The MS font name worked. I did the below…

richStyle.NotesFont = rti.GetNotesFont(“Microsoft Sans Serif”, True)

Actually an integer value of 5 equates to the Microsoft Sans Serif font which looks just like Default Sans Serif so works for me.

Thank you for your help.

  • jlh