Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / rom / graphics / addfont.c
blob2d5857a7bf196e946367016d076870f4474615de
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Make a font public available
6 Lang: english
7 */
8 #include <aros/debug.h>
9 #include "graphics_intern.h"
10 #include <proto/exec.h>
12 /*****************************************************************************
14 NAME */
15 #include <graphics/text.h>
16 #include <proto/graphics.h>
18 AROS_LH1(void, AddFont,
20 /* SYNOPSIS */
21 AROS_LHA(struct TextFont *, textFont, A1),
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 80, Graphics)
26 /* FUNCTION
27 Add a font to the list of public fonts. After that, you can
28 open the font with OpenFont().
30 INPUTS
31 textFont - The font to add.
33 RESULT
34 None.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 OpenFont(), RemFont(), CloseFont(), SetFont()
45 INTERNALS
47 HISTORY
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
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;
59 Forbid();
60 AddHead (&GfxBase->TextFonts, (struct Node *)textFont);
61 Permit();
63 AROS_LIBFUNC_EXIT
64 } /* AddFont */