IBM®
Skip to main content
    Country/region select      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Technical Library
developerWorks



Tips from LDD
A quick font change for mail messages

Tip submitted by
Peter J Sauerberg


Level: Beginner
Works with: Notes R5
Updated: 05/01/2002

Related link:
More Tips from LDD


Here's a handy tip for Notes mail users who want to change the default font for composing memos, but who don't want to do this through Domino Designer (or by changing their NOTES.INI file). This tip uses a SmartIcon and a simple formula, which you easily modify to suit your needs.
  1. In Notes, select File - Preferences - SmartIcon Settings to display the SmartIcon Settings dialog box.
  2. Scroll down the Available icons list on the left of the dialog box until you see the available Macro Button icons at the bottom. Select an available icon, and drag it to the right to add it to the "current icons" list. In our example, we've selected the "mail" Macro Button and added it to the current icons list.

    SmartIcon Settings dialog box
  3. Make sure the Show: Icon Bar checkbox is selected.
  4. With your new Macro Button selected, click the Edit Icon button. The Edit SmartIcons dialog box appears.

    Edit SmartIcons dialog box
  5. Click the Formula button, and enter the following formula in the SmartIcons Formula dialog box:

    @Command([EditGotoField]; "Body");
    @Command([EditSelectAll]);
    @Command([TextSetFontFace]; "<typeface>");
    @Command([TextSetFontSize]; "<font size>");
    @Command([EditDeselectAll])


    <typeface> is the font style you want to use as your default for mail messages, and <font size> is the size (in points) of the default font. For example, to set your default mail message font to Gill Sans MT 10 point, enter:

    @Command([EditGotoField]; "Body");
    @Command([EditSelectAll]);
    @Command([TextSetFontFace]; "Gill Sans MT");
    @Command([TextSetFontSize]; "10");
    @Command([EditDeselectAll])
  6. Click OK to save your formula. Then click Done in the Edit SmartIcon dialog box and OK in the SmartIcon Settings dialog box.
The new SmartIcon will appear in your SmartIcons bar. To use it to change your mail font, simply place your cursor anywhere in the body of the message and click the SmartIcon. The text will change to the font style and size you've specified in the SmartIcon formula. You can do this before, during, or after typing the text. Using your new SmartIcon changes the "default" font for that particular mail message. (The change is for that mail message only; if you create another mail message the Mail form's default font will again apply, until you click the SmartIcon.)

With experimentation, you might also create SmartIcons for changing the font of editable fields on other forms as well, and create multiple SmartIcons to set different fonts for different forms.





Would you like to submit a tip?
    About IBM Privacy Contact