HP Visualize J5000 hp workstations - hp-ux 10.20 graphics administration guide - Page 133

Font Server Names, Color Names

Page 133 highlights

To convert one of the resulting names into a font at a specific size, replace one of the first two zeros with a nonzero value. The field containing the first zero is for the pixel size; replace it with a specific height in pixels to name a font at that size. Alternatively, the field containing the second zero is for the point size; replace it with a specific size in decipoints (there are 722.7 decipoints to the inch) to name a font at that size. The last zero is an average width field, measured in tenths of pixels; some servers will anamorphically scale if this value is specified. Font Server Names One of the following forms can be used to name a font server that accepts TCP connections: tcp/hostname:port tcp/hostname:port/cataloguelist The hostname specifies the name (or decimal numeric address) of the machine on which the font server is running. The port is the decimal TCP port on which the font server is listening for connections. The cataloguelist specifies a list of catalogue names, with "+" as a separator. For example: tcp/expo.lcs.mit.edu:7000 tcp/18.30.0.212:7001/all. Color Names Most applications provide ways of tailoring (usually through resources or command-line arguments) the colors of various elements in the text and graphics they display. A color can be specified either by an abstract color name, or by a numerical color specification. The numerical specification can identify a color in either device-dependent (RGB) or device-independent terms. Color strings are case-insensitive. X supports the use of abstract color names, for example, "red", "blue". A value for this abstract name is obtained by searching one or more color-name databases. Xlib first searches zero or more client-side databases; the number, location, and content of these databases is implementation-dependent. If the name is not found, the color is looked up in the X server's database. The text form of this database is commonly stored in the file /usr/lib/X11/rgb.txt. A numerical color specification consists of a color space name and a set of values in the following syntax: color_space_name:value/.../value Page 133 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

To convert one of the resulting names into a font at a specific size, replace one of the first two zeros with
a nonzero value. The field containing the first zero is for the pixel size; replace it with a specific height
in pixels to name a font at that size. Alternatively, the field containing the second zero is for the point
size; replace it with a specific size in decipoints (there are 722.7 decipoints to the inch) to name a font at
that size. The last zero is an average width field, measured in tenths of pixels; some servers will
anamorphically scale if this value is specified.
Font Server Names
One of the following forms can be used to name a font server that accepts TCP connections:
tcp/hostname:port
tcp/hostname:port/cataloguelist
The hostname specifies the name (or decimal numeric address) of the machine on which the font server
is running. The port is the decimal TCP port on which the font server is listening for connections. The
cataloguelist specifies a list of catalogue names, with "+" as a separator. For example:
tcp/expo.lcs.mit.edu:7000
tcp/18.30.0.212:7001/all.
Color Names
Most applications provide ways of tailoring (usually through resources or command-line arguments) the
colors of various elements in the text and graphics they display. A color can be specified either by an
abstract color name, or by a numerical color specification. The numerical specification can identify a
color in either device-dependent (RGB) or device-independent terms. Color strings are case-insensitive.
X supports the use of abstract color names, for example, "red", "blue". A value for this abstract name is
obtained by searching one or more color-name databases. Xlib first searches zero or more client-side
databases; the number, location, and content of these databases is implementation-dependent. If the
name is not found, the color is looked up in the X server's database. The text form of this database is
commonly stored in the file
/usr/lib/X11/rgb.txt
.
A numerical color specification consists of a color space name and a set of values in the following
syntax:
color_space_name:value/.../value
Graphics Administration Guide for HP-UX 10.20
Page 133