next up previous contents
Next: Printers and Plotters Up: Technical Talk Previous: Technical Talk

Subsections


X Windows / Motif

Window Popping

"If I pop my FEMGV X Window, the previously obscured portion of the window is not redrawn until I issue a DRAWING DISPLAY command. Why? "

FEMGV assumes that X Windows backing store is available. This is an X server function which maintains obscured portions of your windows and automatically redraws them for you when they become unobscured. This facility obviously incurs a performance penalty and for this reason Silicon Graphics actively recommend that it is not used. However, if you feel that you need it you can usually turn it on via a switch on the X server initialisation command. This command is known by a variety of names; Xsgi for Silicon Graphics, xinit for IBM RS/6000, etc.. The best thing to do is to start by typing the command man Xserver and take it from there!

Cut and Paste

"Is it possible to cut and paste between FEMGV and other X clients? "

Yes. FEMGV supports the xterm style of cut/paste interaction. Pressing the middle mouse button whilst in the FEMGV window (with the exclamation mark cursor visible), will cause the program to copy the contents of the X Windows cut buffer 0 into the FEMGV input area. You can select text in your X client window using the lefthand mouse button. See xterm for more details. It is not yet possible to cut from the FEMGV window and paste into another client.

Colourmaps Explained

"The FEMGV window colours interact with my existing windows making them illegible!"

A major problem with earlier releases of the FEMGV X Windows driver was the handling of colour, and in particular, the interference with other windows. The latest driver attempts to address these problems; the following notes explain how the present driver works and also describe some of the problems you may still encounter.

Character Sizes

FEMGV uses up to five fonts, typically 12 point and 10 point proportionally spaced for the GUI and monospaced for annotation.

The fonts are used as follows:-

LargeFont Window titles, command input line, annotation.
SmallFont Annotation in multiviewport mode.
GUIFont Menu column, scrolling alpha area, monitor box, model index.
SmallGUIFont Monitor box and model index in multiviewport mode.
FormFont Pop-up forms.

The program selects the fonts as follows:

1.
If the font specified by the resource LargeFont exists; use this as the 12 point font.
2.
Else, if 9x15 exists; use this as the 12 point font.
3.
Else, search for fonts which match the template
      *courier-medium-r-normal-*-120-*-m-*
and use the first one found.
4.
Else, give up!

Similarly for SmallFont, GUIFont and SmallGUIFont

If you do not like the font that is being used then it is possible for you to change it as follows:

1.
Find out exactly which fonts are being used. You can set the environment variable FV_DEBUG to True or use -Debug on the command line; this will print out the font names (amongst other things).
2.
Decide upon which fonts you do want to use. It is important to remember that FEMGV requires monospaced fonts for LargeFont and SmallFont - proportionally spaced fonts will wreak havoc upon the graphical elegance of the software.

3.
Set the relevant resource to be the name of the required font.

Selecting Fonts for X Windows / Motif

The X Windows system provides two utilities, xlsfonts and xfd, which may be of some help in selecting suitable font.

Having selected your preferred fonts you should set the font resources accordingly.

These resources are:

Selecting Fonts for OpenGL on Silicon Graphics

A simple way of selecting fonts when using a Silicon Graphics machine is to open a winterm window and use the in-built font selector. To activate this you need to press and hold the right mouse button, slide down to the Font.. option and release the button.

Having selected your preferred fonts you should set the font resources accordingly.

These resources are:

Selecting Fonts for Windows NT/95/98

It is possible to change the fonts used by FEMGV via the View/Font Editor menu. This gives you access to a Font Selector which allows you to browse through the available fonts. Having selected your preferred fonts their names will be remembered in the Windows Registry.

Currently, the following fonts may be changed from the given defaults:

MSWindows.LargeFont Fixedsys.Regular.Bold.10
MSWindows.SmallFont Courier New.Regular.Medium.7
MSWindows.GUIFont Arial.Regular.Bold.10
MSWindows.SmallGUIFont Small Fonts.Regular.Bold.7

If you use the command line argument -DefaultFonts when running FEMGV the View/Font Editor menu will display the default fonts rather than the one stored in the Registry. In this way it is possible to reinstate the original settings.


next up previous contents
Next: Printers and Plotters Up: Technical Talk Previous: Technical Talk

Femsys Limited
9/10/1999