2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Make a font public available
8 #include <aros/debug.h>
9 #include "graphics_intern.h"
10 #include <proto/exec.h>
12 /*****************************************************************************
15 #include <graphics/text.h>
16 #include <proto/graphics.h>
18 AROS_LH1(void, AddFont
,
21 AROS_LHA(struct TextFont
*, textFont
, A1
),
24 struct GfxBase
*, GfxBase
, 80, Graphics
)
27 Add a font to the list of public fonts. After that, you can
28 open the font with OpenFont().
31 textFont - The font to add.
43 OpenFont(), RemFont(), CloseFont(), SetFont()
49 *****************************************************************************/
53 ASSERT_VALID_PTR(textFont
);
55 textFont
->tf_Message
.mn_Node
.ln_Type
= NT_FONT
;
56 textFont
->tf_Accessors
= 0;
57 textFont
->tf_Flags
&= ~FPF_REMOVED
;
60 AddHead (&GfxBase
->TextFonts
, (struct Node
*)textFont
);