#include "quiz.h" extern APTR OpenLibrary (); struct TextFont * OpenDiskFont (); APTR DiskfontBase; struct TextFont * thai_font; struct TextAttr thai_textattr; open_thai_font () { DiskfontBase = OpenLibrary ( "diskfont.library" , 0L ); if ( DiskfontBase == NULL ) return ( FALSE ); thai_textattr.ta_Name = (UBYTE*) "Thai.font"; thai_textattr.ta_YSize = 22; thai_textattr.ta_Style = 0; thai_textattr.ta_Flags = 0; thai_font = OpenDiskFont ( &thai_textattr ); if ( thai_font == NULL ) { CloseLibrary ( DiskfontBase ); return ( FALSE ); } return ( TRUE ); } close_thai_font () { CloseFont ( thai_font ); CloseLibrary ( DiskfontBase ); }