HP Visualize J2240 hp workstations - hp-ux 10.20 graphics administration guide - Page 131

Window Managers, Font Names, fonts, families, font path

Page 131 highlights

Offsets must be given as pairs; in other words, in order to specify either xoff or yoff both must be present. Windows can be placed in the four corners of the screen using the following specifications: • +0+0 (the upper left-hand corner) • -0+0 (the upper right-hand corner) • -0-0 (the lower right-hand corner) • +0-0 (the lower left-hand corner) In the following examples, a terminal emulator will be placed in roughly the center of the screen and a load average monitor, mailbox, and clock will be placed in the upper right hand corner: xterm -fn 6x10 -geometry 80x24+30+200 & xclock -geometry 48x48-0+0 & xload -geometry 48x48-96+0 & xbiff -geometry 48x48-48+0 & Window Managers The layout of windows on the screen is controlled by special programs called window managers. Although many window managers will honor geometry specifications as given, others may choose to ignore them (requiring the user to explicitly draw the window's region on the screen with the pointer, for example). Since window managers are regular (albeit complex) client programs, a variety of different user interfaces can be built. The Hewlett-Packard distribution comes with window managers named mwm and dtwm, which support overlapping windows, popup menus, point-and-click or click-to-type input models, title bars, nice icons (and an icon manager for those who don't like separate icon windows). See the user-contributed software in the MIT distribution for other popular window managers. Font Names Collections of characters for displaying text and symbols in X are known as fonts. A font typically contains images that share a common appearance and look nice together (for example, a single size, boldness, slantedness, and character set). Similarly, collections of fonts that are based on a common type face the variations are usually called roman, bold, italic (or oblique), and bold italic (or bold oblique) are called families. Fonts come in various sizes. The X server supports scalable fonts, meaning it is possible to create a font of arbitrary size from a single source for the font. The server supports scaling from outline fonts and bitmap fonts. Scaling from outline fonts usually produces significantly better results on large point sizes than scaling from bitmap fonts. An X server can obtain fonts from individual files stored in directories in the file system, or from one or more font servers, or from a mixtures of directories and font servers. The list of places the server looks when trying to find a font is controlled by its font path. Although most installations will choose to have Page 131 Graphics Administration Guide for HP-UX 10.20

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171

Offsets must be given as pairs; in other words, in order to specify either xoff or yoff both must be
present. Windows can be placed in the four corners of the screen using the following specifications:
+0+0 (the upper left-hand corner)
-0+0 (the upper right-hand corner)
-0-0 (the lower right-hand corner)
+0-0 (the lower left-hand corner)
In the following examples, a terminal emulator will be placed in roughly the center of the screen and a
load average monitor, mailbox, and clock will be placed in the upper right hand corner:
xterm -fn 6x10 -geometry 80x24+30+200 &
xclock -geometry 48x48-0+0 &
xload -geometry 48x48-96+0 &
xbiff -geometry 48x48-48+0 &
Window Managers
The layout of windows on the screen is controlled by special programs called window managers.
Although many window managers will honor geometry specifications as given, others may choose to
ignore them (requiring the user to explicitly draw the window's region on the screen with the pointer, for
example).
Since window managers are regular (albeit complex) client programs, a variety of different user
interfaces can be built. The Hewlett-Packard distribution comes with window managers named mwm
and dtwm, which support overlapping windows, popup menus, point-and-click or click-to-type input
models, title bars, nice icons (and an icon manager for those who don't like separate icon windows).
See the user-contributed software in the MIT distribution for other popular window managers.
Font Names
Collections of characters for displaying text and symbols in X are known as
fonts
. A font typically
contains images that share a common appearance and look nice together (for example, a single size,
boldness, slantedness, and character set). Similarly, collections of fonts that are based on a common type
face the variations are usually called roman, bold, italic (or oblique), and bold italic (or bold oblique) are
called
families
.
Fonts come in various sizes. The X server supports scalable fonts, meaning it is possible to create a font
of arbitrary size from a single source for the font. The server supports scaling from outline fonts and
bitmap fonts. Scaling from outline fonts usually produces significantly better results on large point sizes
than scaling from bitmap fonts.
An X server can obtain fonts from individual files stored in directories in the file system, or from one or
more font servers, or from a mixtures of directories and font servers. The list of places the server looks
when trying to find a font is controlled by its
font path
. Although most installations will choose to have
Graphics Administration Guide for HP-UX 10.20
Page 131