blob: 733d0a2a1154cd0d866f8c1338489c3551e6743d (
plain) (
blame)
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
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
include <gset.h>
include "gks.h"
# GQCHH - Inquire character height.
procedure gqchh (ierror, chh)
int ierror # Error indicator
real chh # Character height, in world coordinates
real dx, dy
real gstatr()
include "gks.com"
errchk gstatr, ggscale
begin
if (gk_std == NULL) {
# GKS not in proper state; no active workstations
ierror = 7
chh = -1.0
return
} else
ierror = 0
iferr {
chh = gstatr (gp[gk_std], G_CHARSIZE)
# The character height is expressed in NDC units. It must be
# converted to world coordinates before returning.
call ggscale (gp[gk_std], 0., 0., dx, dy)
chh = chh * dy
} then {
ierror = 1
chh = -1.0
}
end
|