Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
17.  Administering Application Resources, Fonts, and Colors Defining UNIX Bindings UNIX Bindings Provided by the UNIXbindings File  Previous   Contents   Next 
   
 

The following translations provide (GNU style) EMACS control and Meta key bindings plus some additional bindings. When appropriate, they also allow the Shift key to be used in combination with the normal binding to reverse the direction of the operation. For example, Ctrl+Shift+F will move the cursor backward a character since Ctrl+F normally moves it forward a character.

The additional bindings are:

Ctrl+comma--backward-word

Ctrl+Shift+comma--forward-word

Ctrl+period--forward-word

Ctrl+Shift+period--backward-word

Ctrl+Return--end-of-file

Ctrl+Shift+Return--beginning-of-file

GNU EMACS binds delete-previous-character() rather than delete-next-character() to the Delete key. Meta+F is normally the mnemonic for the File menu, so the binding to forward-word() will be ignored. Use one of the other bindings for forward-word (for example, Ctrl+period).

Table 17-3 lists the DtEditor.text Translations

Table 17-3 DtEditor.text Translations

Modifier Key

Key

Action Routine

c ~s

<Key>a:

beginning-of-line()\n\

c s

<Key>a:

end-of-line()\n\

c ~s

<Key>b:

backward-character()\n\

c s

<Key>b:

forward-character()\n\

c ~s

<Key>b:

backward-character()\n\

c s

<Key>b:

backward-word()\n\

m ~s

<Key>b:

backward-word()\n\

m s

<Key>b:

forward-word()\n\

c ~s

<Key>d:

delete-next-character()\n\

c s

<Key>d:

delete-previous-character()\n\

m ~s

<Key>d:

kill-next-word()\n\

m s

<Key>d:

kill-previous-word()\n\

c ~s

<Key>e:

end-of-line()\n\

c s

<Key>e:

beginning-of-line()\n\

c ~s

<Key>f:

forward-character()\n\

c s

<Key>f:

backward-character()\n\

m ~s

<Key>f:

forward-word()\n\

m s

<Key>f:

backward-word()\n\

c

<Key>j:

newline-and-indent()\n\

c ~s

<Key>k:

kill-to-end-of-line()\n\

c s

<Key>k:

kill-to-start-of-line()\n\

c

<Key>l:

redraw-display()\n\

c

<Key>m:

newline()\n\

c s

<Key>n:

process-up()\n\

c ~s

<Key>n:

process-down()\n\

c

<Key>o:

newline-and-backup()\n\

c ~s

<Key>p:

process-up()\n\

c s

<Key>p:

process-down()\n\

c ~s

<Key>u:

kill-to-start-of-line()\n\

c s

<Key>u:

kill-to-end-of-line()\n\

c ~s

<Key>v:

next-page()\n\

c s

<Key>v:

previous-page()\n\

m ~s

<Key>v:

previous-page()\n\

m s

<Key>v:

next-page()\n\

c

<Key>w:

kill-selection()\n\

c ~s

<Key>y:

unkill()\n\

m

<Key>]:

forward-paragraph()\n\

m

<Key>[:

backward-paragraph()\n\

c ~s

<Key>comma:

backward-word()\n\

c s

<Key>comma:

forward-word()\n\

m

<Key>\\<:

beginning-of-file()\n\

c ~s

<Key>period:

forward-word()\n\

c s

<Key>period:

backward-word()\n\

m

<Key>\\>:

end-of-file()\n\

c ~s

<Key>Return:

end-of-file()\n\

c s

<Key>Return:

beginning-of-file()\n\

~c ~s ~m ~a

<Key>osfDelete:

delete-previous-character()\n\

~c s ~m ~a

<Key>osfDelete:

delete-next-character()

Administering Fonts

Using the Style Manager Font dialog box, you can select the font group and size you want for all applications. You can also specify fonts on the command line or use resources to:

  • Set font resources for individual applications

  • Assign different fonts to be used by the Font dialog box

A font is a type style in which text characters are printed or displayed. The desktop includes a variety of fonts in different styles and sizes.

A bitmap font is made from a matrix of dots. (By default, Style Manager configures bitmap fonts only.) The font is completely contained in one file. Many files are needed to have a complete range of sizes, slants, and weights.

Fonts are specified as values of resources and as parameters to commands. The X Logical Font Description (XLFD) name is the method by which a desired font is requested. The system finds the font that best matches the description it was given.

Setting Desktop Font Resources

The Style Manager Font dialog box enables you to select fonts (up to seven sizes) for things such as text entry and labels. It also enables you to add or delete font groups.

Resources Set by the Font Dialog Box

When a font is selected, the following resources are written to the RESOURCE_MANAGER property:

  • SystemFont is used for system areas, such as menu bars, menu panes, push buttons, toggle buttons, and labels. The following resource is set by SystemFont:

    *FontList--displayed in system areas of desktop clients and other clients created using the OSF/Motif toolkit.

  • UserFont is used for text entered into windows. The following resources are set by UserFont:

    *Font--supports earlier versions of X applications

    *FontSet--the primary setting

    *XmText*FontList--displayed in text entry boxes

    *XmTextField*FontList--displayed in text entry boxes

 
 
 
  Previous   Contents   Next