Minor fixes to comments.
[AROS.git] / rom / graphics / closefont.c
blob06a14f5b932315761ef20782f76a0374a05a6765
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$ $Log
5 Desc: Graphics function CloseFont()
6 Lang: english
7 */
8 #include <aros/debug.h>
9 #include "graphics_intern.h"
10 #include <graphics/text.h>
12 /*****************************************************************************
14 NAME */
15 #include <graphics/text.h>
16 #include <proto/graphics.h>
18 AROS_LH1(void, CloseFont,
20 /* SYNOPSIS */
21 AROS_LHA(struct TextFont *, textFont, A1),
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 13, Graphics)
26 /* FUNCTION
27 Close a font.
29 INPUTS
30 font - font pointer from OpenFont() or OpenDiskFont()
32 RESULT
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 HISTORY
45 29-10-95 digulla automatically created from
46 graphics_lib.fd and clib/graphics_protos.h
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
52 if (!textFont) return;
54 ASSERT_VALID_PTR(textFont);
56 Forbid();
57 textFont->tf_Accessors--;
58 if ((textFont->tf_Accessors == 0) && !(textFont->tf_Flags & FPF_ROMFONT))
60 RemFont(textFont);
62 Permit();
64 AROS_LIBFUNC_EXIT
66 } /* CloseFont */