Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://hea-www.harvard.edu/RD/saotng/xproblems.html
Дата изменения: Unknown Дата индексирования: Tue Oct 2 00:11:31 2012 Кодировка: Поисковые слова: п п п п п п п п п р п р п п р п п р п п р п п р п п р п п р п п р п п р п |
Its getting harder and harder to write cross-platform X code that works perfectly. Some subtle differences have crept into different versions of X and these are hard to deal with in a general way. Please note the following problems and workarounds:
To get around this problem, we have added the -kbprefix command switch (and the SAOTNG_KBPREFIX environment variable) to SAOtng. This switch allows you to specify which arrow keys you want to use (assuming your version of X supports both). The default is set based on which version of X we believe you are using, so it often will be correct. But if your mouse and markers do not move in response to the arrow keys, please try one of these switches:
saotng -kbprefix "" # use the non-keypad keys or saotng -kbprefix "KP_" # use the keypad keysIf you find that one of them enables marker movement, then set the appropriate environment variable, for example:
setenv SAOTNG_KBPREFIX "KP_"
Note that using the wrong keyboard prefix can result in a lot of "translation table" error messages on startup. These messages look like:
Warning: translation table syntax error: Unknown keysym name: KP_DownIf you find that such error messages are being output, then try the other prefix. In the above example, the "KP_" prefix is not valid, so try:
saotng -kbprefix ""If nothing works (i.e., markers do not move or you get error translation messages on startup), please contact us.
For menus: -adobe-times-bold-r-normal--14-140-75-75-p-77-iso8859-1 For commands: -adobe-times-medium-r-normal--14-140-75-75-p-74-iso8859-1The choice of these fonts can be controlled by the command switches: -menufont and -commandfont, or the corresponding environment variables: SAOTNG_MENUFONT and SAOTNG_COMMANDFONT.
In addition, the message window, dialog window, control panel and WCS display use fonts which can be specified using the -largefont1 (SAOTNG_LARGEFONT1), -smallfont1 (SAOTNG_SMALLFONT1), -smallfont2 (SAOTNG_SMALLFONT2), and -smallfont3 (SAOTNG_SMALLFONT3) switches (and environment variables):
SmallFont1: -adobe-times-medium-r-normal--12-120-75-75-p-64-iso8859-1 SmallFont2: -adobe-times-bold-r-normal--12-120-75-75-p-67-iso8859-1 SmallFont3: 7x13bold LargeFont1: 9x15
These fonts look nice and natural on SAOtng, but X will substitute really ugly fonts if it can't locate them. If you find the font size is weird or really ugly, you can change fonts using the switches above. To see which fonts are available with your X server, execute the following X program in your shell:
xlsfonts