# SUBSYSTEM OVERVIEW

IGES Utility Native Language (IUNL) Subsystem

The IUNL subsystem provides support for stroking the IGES 2001 character set. The set includes Japanese Kanji as well as Hirogana/Katakana as defined in the Japanese Industrial Standard (JIS). This subsystem is responsible for settting up font tables which are used to stroke characters in the 2001 set to polylines.

# SUBSYSTEM USAGE

The only public functions in the IUNL subsystem are iunl_Initialize and iunl_Terminate. iunl_Initialize must be called from the application level because IUNL is not initialized by IGES by default. IUNL provides two methods for defining the information needed to stroke the IGES 2001 character set. The first method is to use the default font table which is distributed with PDElib. The second method is to use user-provided font files in the Zeit font file format.

To use the default table do the following:

     #include "iges_Interface.h"
     #include "iunl_Interface.h"
     .
     .
     pdx_EC (pdx_Initialize (PDX_NOOPT))
     pdx_EC (gdx_Initialize (GDX_NOOPT))
     pdx_EC (iges_Initialize (IGES_NOOPT))
     pdx_EC(iunl_Initialize(IUNL_FONT_TABLE, iunl_GetDefaultFontTable()))
     .
     .
     pdx_EC(iunl_Terminate(IUNL_NOOPT))
     pdx_EC(iges_Terminate(IGES_NOOPT))
     pdx_EC(gdx_Terminate(GDX_NOOPT))
     pdx_EC(pdx_Terminate(PDX_NOOPT))

To use a user provided Zeit font table defined by the files mincho.vf1 and mincho.vf2 in the current directory do the following:

     #include "iges_Interface.h"
     #include "iunl_Interface.h"
     .
     .
     pdx_EC (pdx_Initialize (PDX_NOOPT))
     pdx_EC (gdx_Initialize (GDX_NOOPT))
     pdx_EC (iges_Initialize (IGES_NOOPT))
     pdx_EC(iunl_Initialize(IUNL_FONT_FILE, "mincho"))
     .
     .
     pdx_EC(iunl_Terminate(IUNL_NOOPT))
     pdx_EC(iges_Terminate(IGES_NOOPT))
     pdx_EC(gdx_Terminate(GDX_NOOPT))
     pdx_EC(pdx_Terminate(PDX_NOOPT))

# FUNCTIONS

iunl_Initialize

Initialize the iunl subsystem to set up the information needed for stroking characters using one of the two methods described above

iunl_Terminate

Terminate the iunl subsystem