OOF2: The Manual

Name

OOF.Settings.Fonts.Widgets — Set the font to use for labels, menus, buttons, etc. in the graphical user interface.

Synopsis

OOF.Settings.Fonts.Widgets(fontname)

Details

  • Parent Menu: OOF.Settings.Fonts
  • Callback: function setFont in module ooflib.common.IO.mainmenu
  • Parameters:

    fontname
    The name of a font. Type: A character string.

Description

This command sets the font to be used in most of the GUI. It applies to all labels, pull-down menus, buttons, etc. It does not apply to textual displays, like the Console window.

The font name can be any font recognized by the Pango library. In GUI mode, this command brings up a font selection dialog, so the user doesn't have to know the names of the fonts installed on the system.

To automatically set the font for all OOF2 sessions, put this command in the file .oof2rc in your home directory, for example:

      OOF.Settings.Font.Widgets(fontname="Trebuchet MS 12")
    

It's also possible to specify the font in the .gtkrc-2.0 file in your home directory, like this:

      gtk-font-name = "Trebuchet MS 12"
    

A font set in this way will be used in all programs that use the gtk+ library. In OOF2, settings in .oof2rc override settings in .gtkrc-2.0.