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/calcomp/ccpfont.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/gio/calcomp/ccpfont.x')
-rw-r--r-- | sys/gio/calcomp/ccpfont.x | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/gio/calcomp/ccpfont.x b/sys/gio/calcomp/ccpfont.x new file mode 100644 index 00000000..0e7ad9a4 --- /dev/null +++ b/sys/gio/calcomp/ccpfont.x @@ -0,0 +1,34 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gki.h> +include <gset.h> +include "ccp.h" + +# CCP_FONT -- Set the character font. The roman font is normal. Bold is +# implemented by increasing the vector line width; care must be taken to +# set CCP_WIDTH so that the other vector drawing procedures remember to +# change the width back. The italic font is implemented in the character +# generator by a geometric transformation. + +procedure ccp_font (font) + +int font # code for font to be set +int pk1, pk2, width +include "ccp.com" + +begin + pk1 = GKI_PACKREAL(1.0) + pk2 = GKI_PACKREAL(2.0) + + width = CCP_WIDTH(g_cc) + + if (font == GT_BOLD) { + if (width != pk2) + width = pk2 + } else { + if (GKI_UNPACKREAL(width) > 1.5) + width = pk1 + } + + CCP_WIDTH(g_cc) = width +end |