From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/gio/sgikern/sgifont.x | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 sys/gio/sgikern/sgifont.x (limited to 'sys/gio/sgikern/sgifont.x') diff --git a/sys/gio/sgikern/sgifont.x b/sys/gio/sgikern/sgifont.x new file mode 100644 index 00000000..808c7f56 --- /dev/null +++ b/sys/gio/sgikern/sgifont.x @@ -0,0 +1,42 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include +include "sgi.h" + +# SGI_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 SGI_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 sgi_font (font) + +int font # code for font to be set + +int normal, bold +int pk1, pk2, width +include "sgi.com" + +begin + width = SGI_WIDTH(g_kt) + normal = 0 + bold = 1 + + pk1 = GKI_PACKREAL(real(normal)) + pk2 = GKI_PACKREAL(real(bold)) + + if (font == GT_BOLD) { + if (width != pk2) { + call sgk_linewidth (g_out, bold) + width = pk2 + } + } else { + if (width != pk1) { + call sgk_linewidth (g_out, normal) + width = pk1 + } + } + + SGI_WIDTH(g_kt) = width +end -- cgit