2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <diskfont/diskfont.h>
7 #include <proto/exec.h>
9 #include <proto/diskfont.h>
10 #include <proto/utility.h>
11 #include <proto/graphics.h>
17 struct Library
*DiskfontBase
;
18 struct UtilityBase
*UtilityBase
;
22 void cleanup(char *msg
)
24 if (msg
) printf("aftest: %s\n", msg
);
26 if (buf
) FreeVec(buf
);
28 if (UtilityBase
) CloseLibrary((struct Library
*)UtilityBase
);
29 if (DiskfontBase
) CloseLibrary(DiskfontBase
);
36 DiskfontBase
= OpenLibrary("diskfont.library", 0);
37 if (!DiskfontBase
) cleanup("Cant open diskfont.library!");
38 UtilityBase
= (struct UtilityBase
*) OpenLibrary("utility.library", 0);
39 if (!UtilityBase
) cleanup("Cant open utility.library!");
44 struct TextFont
*font
;
47 ta
.ta_Name
= "Vera Sans Bold Italic.font";
48 ta
.ta_Name
= "xhelvetica.font";
53 font
= OpenDiskFont(&ta
);
66 return 0; /* keep compiler happy */