diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/gio/gks/gschh.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/gio/gks/gschh.x')
-rw-r--r-- | sys/gio/gks/gschh.x | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/gio/gks/gschh.x b/sys/gio/gks/gschh.x new file mode 100644 index 00000000..172af231 --- /dev/null +++ b/sys/gio/gks/gschh.x @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gset.h> +include "gks.h" + +# GSCHH -- Set character height. + +procedure gschh (chh) + +real chh # Character height in world coordinates + +real dx, dy, ndc_chh +include "gks.com" + +begin + # Input chh is in world coordinates; it must be transformed to NDC. + # Assuming spatial transformation is linear, input coordinates to + # ggscale are not used and so are set to 0.0. + + call ggscale (gp[gk_std], 0.0, 0.0, dx, dy) + if (dy != 0) { + ndc_chh = chh / dy + call gsawr (G_CHARSIZE, ndc_chh) + } else + call gsawr (G_CHARSIZE, chh) +end |