Sending mail with fixed Courier font

Sending mail with fixed Courier font

I have some problems with the fonts using Notes. I have R4.6-servers, R4.6 clients and some R5 clients. My application will generate mails to clients. I use Notes RichText. The contents of the mail is set to font Courier by using richStyle.NotesFont = FONT_COURIER for better format.

     Dim richStyle As NotesRichTextStyle
     Set richStyle = s.CreateRichTextStyle
     richStyle.NotesFont = FONT_COURIER
     richStyle.FontSize = 10
     
     Set rtitem = New NotesRichTextItem(maildoc, "Body")
     Call rtitem.AppendStyle(richStyle)
     Set rtitemApprove = New NotesRichTextItem(maildoc, "Body")     
     Call rtitemApprove.AppendStyle(richStyle)

The problem is whenever R5 clients change the User Preferences/Basics/Default Fonts/Default Monospace font to font other than Courier, the original Courier font will be changed to the Default Monospace font and the positions of the contents will shift. I would like to know if there is a way to send the mail with 'HARDCODE' Courier font which cannot be overrided by the user's setting. I tried using R5 clients to compose and send mail with Courier font and the font does not changet. What make the cases different? Any comments will help. Thanks in advance.


    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Try using a monospaced TrueType font like Courier New. This should stay regardless of user settings.


This was first published in October 2001