1 #include <diskfont/diskfont.h>
2 #include <proto/exec.h>
4 #include <proto/diskfont.h>
5 #include <proto/utility.h>
6 #include <proto/graphics.h>
12 struct Library
*DiskfontBase
;
13 struct UtilityBase
*UtilityBase
;
17 void cleanup(char *msg
)
19 if (msg
) printf("aftest: %s\n", msg
);
21 if (buf
) FreeVec(buf
);
23 if (UtilityBase
) CloseLibrary((struct Library
*)UtilityBase
);
24 if (DiskfontBase
) CloseLibrary(DiskfontBase
);
31 DiskfontBase
= OpenLibrary("diskfont.library", 0);
32 if (!DiskfontBase
) cleanup("Cant open diskfont.library!");
33 UtilityBase
= (struct UtilityBase
*) OpenLibrary("utility.library", 0);
34 if (!UtilityBase
) cleanup("Cant open utility.library!");
39 struct TextFont
*font
;
42 ta
.ta_Name
= "Vera Sans Bold Italic.font";
43 ta
.ta_Name
= "xhelvetica.font";
48 font
= OpenDiskFont(&ta
);
61 return 0; /* keep compiler happy */