#include "typedef.h"
#include "com_def.h"
/************************** static variable *********************/
extern  ar_INT32*       GradeVal;
extern  ar_BYTE*        GradePtr;
extern  ar_BYTE*        GradeFlg;
extern  ar_INT32*       SplitStk;
extern  ar_INT16        GLRemainFntDatBit;
extern  ar_UINT32       STstrokePtr;
extern  ar_UINT32       STfontDataPtr;
extern  FONT_ID         STfontPtr[maxFONT];
extern  ar_INT16        STfvcf;
extern  ar_INT16        GLCustomID;
extern  ar_INT16        STfontNo;
extern  ar_UINT16       STstartcode;
extern  ar_UINT16       STfinalcode;
extern  ar_UINT16       GLCode;
extern  ar_INT16        SToutformat;
extern  ar_UINT32       STout_cnt;
extern  ar_BYTE         STerrflag;
extern  ar_INT16        STclp_vmin;
extern  ar_INT16        STclp_hmin;
extern  ar_INT16        STclp_vmax;
extern  ar_INT16        STclp_hmax;
extern  ar_BYTE         *STworkend;
/************************** global variable *********************/
extern  ar_BYTE         *STout_buf;
extern  RASTERLINE      *STout_r;
extern  BEZIERpoint     *STout_p;
extern  ar_UINT16       GLCurrWeightTable[128];
extern  TRANSMAT        GLCurrTransMatrix;
extern  BBOXMET         GLCurrBoundingBox;
extern  ar_INT16        GLadjustflag;
extern  ar_INT32        GLfontsmallsize;
extern  PROCPTR         GLPseudo_Fill_Line;
/************************** global variable *********************/
extern  ar_INT16        fWidth;
extern  ar_INT16        fHeight;
extern  ar_INT32        GLCurrGlyphPtr;
extern  ar_INT32        GLCurrGlyphLen;
extern  ar_INT16        GLInBuffPtr;
extern  ar_INT16        GLpCount;
extern  ar_INT16        GLvCount;
extern  ar_BYTE         *GLGdlDataBuff;
extern  ar_INT32        GLBackDI;
extern  ar_INT32        GLGdlDataPtr;
extern  ar_UINT16       GLPVBuff[30];
extern  ar_UINT16       GLFont_Version;
extern  ar_UINT16       GLstkIDData;
extern  ar_INT32        GLLargeSizeFlag;
extern  ar_INT32        GLBackSI;
extern  ar_INT32        GLProcCallFlag;
extern  ar_INT32        GLFontDataPtr;
extern  ar_INT32        GLPathOrientation;
extern  ar_INT32        GLDoubleGrid;
extern  ar_UINT16       GLstkID;
extern  ar_INT32        GLGdlSPtr;
extern  ar_INT32        GLQuardScale;
extern  ar_INT32        GLQuardMask;
extern  ar_INT32        GLHalfScale;
extern  ar_INT32        GLScaleMask;
extern  ar_INT32        GLUnitScale;
extern  ar_INT32        GLV_Stem;
extern  ar_INT32        GLH_Stem;
extern  ar_INT32        GLS_Stem;
extern  ar_INT32        GLChn_Width;
extern  ar_INT32        GLChn_Height;
extern  ar_INT32        GLChn_Square;
extern  ar_INT32        GLFont_Max_Height;
extern  ar_INT32        GLFont_Max_Width;
extern  ar_UINT16       GLPBuff[30];
extern  ar_UINT16       GLVBuff[30];
extern  ar_BYTE         GLFontData;
extern  ar_UINT16       GLChn_Scal[2];
extern  ar_UINT16       GLChn_Trans[6];
extern  ar_INT32        *pathbuff;
extern  ar_INT32        l_path_incr;
extern  ar_INT32        l_path_ptr;
extern  ar_INT32        r_path_incr;
extern  ar_INT32        r_path_ptr;
extern  ar_BYTE         *GLInFileBuff;
#ifdef  GLYPH_SHARE
extern  ar_CHAR         STflag;
extern  ar_UINT32       SToffset2Ptr;
extern  ar_UINT32       STfontDataPtr1;
extern  ar_INT32        GLCurrOff2Ptr;
extern  ar_INT32        GLCurrOff2Len;
extern  ar_INT32        GLOffset2Ptr;
extern  ar_BYTE         *GLoffset2Buff;
#endif  /* GLYPH_SHARE */
extern  ar_INT32        GLResizeFactor;
extern  ar_INT32        GLResizeDirect;
/******************* global variable ********************/
extern  ar_INT32        GLClosureType;
#ifdef  STROKE_BASE
extern  ar_INT16        stroke_base_flag;
extern  ar_INT32        max_stroke_ptr;
extern  ar_UINT16       max_stroke;
extern  ar_INT16        max_closure;
extern  ar_INT32        max_2_1_ptr;
extern  ar_INT16        max_2_1;
extern  ar_INT16        fntbmp_flag;
#endif  /* STROKE_BASE */
extern  ar_INT16        GLBoundingMinX;
extern  ar_INT16        GLBoundingMinY;
extern  ar_INT16        GLBoundingMaxX;
extern  ar_INT16        GLBoundingMaxY;
#ifdef  SUPPORT_3D
extern  ATTR3D          GL3DAttrib;
extern  ar_INT16        GLCurrMode;
#endif  /* SUPPORT_3D */
#ifdef  SUPPORT_AI
extern  ar_INT32        GLAIPtr;
extern  ar_INT16        GLisAIFlag, GLiconcnt, GLiconnow, LineMode;
extern  ar_INT16        GLDraw2Times, GLAIRemainFlag;
#endif  /* SUPPORT_AI */
extern  BEZIERpoint     *STout_new;
extern  ar_INT32        STerronVal, STerronVali2, CurrHigh;
extern  ar_INT16        InNewCrvgenFlag, GLAntiAlias;
extern  ar_BYTE         GradeCnt, ActiveCnt, SplitStkPtr[MAXINTERSECT];
extern  ar_BYTE         ActivePtr0[MAXINTERSECT + 5];
extern  ar_BYTE         ActivePtr1[MAXINTERSECT + 5];

#ifdef  EMBED_BITMAP
extern  ar_BYTE         B2Rflag;
#endif  /* EMBED_BITMAP */
#ifdef  BMP_SHARE
extern  ar_INT16        shr_width, shr_height, shr_widthb;
#endif  /* BMP_SHARE */
#ifdef  SUPPORT_VERTICAL_WRITING
extern  ar_BYTE         GLDirectFlg, GLVertWritFlag;
#endif  /* SUPPORT_VERTICAL_WRITING */
#ifdef  FREETYPE_GRAY
extern  ar_INT16        GrayNum;
#endif  /* FREETYPE_GRAY */

