fix a typo in the execsmp set_this_task macro. alter the exec spinlock macros slightl...
[AROS.git] / rom / graphics / setfont.c
blobede47470a8b9de46d7057df048faf09da0fa8658
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$ $Log
5 Desc: Graphics function SetFont()
6 Lang: english
7 */
8 #include "graphics_intern.h"
9 #include <graphics/rastport.h>
10 #include <graphics/text.h>
12 /*****************************************************************************
14 NAME */
15 #include <graphics/rastport.h>
16 #include <graphics/text.h>
17 #include <proto/graphics.h>
19 AROS_LH2(void, SetFont,
21 /* SYNOPSIS */
22 AROS_LHA(struct RastPort *, rp, A1),
23 AROS_LHA(struct TextFont *, textFont, A0),
25 /* LOCATION */
26 struct GfxBase *, GfxBase, 11, Graphics)
28 /* FUNCTION
29 Select a new font for rendering strings in a RastPort.
31 INPUTS
32 rp - Change this RastPort
33 textFont - This is the new font
35 RESULT
36 None.
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 HISTORY
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
54 if (textFont)
56 rp->Font = textFont;
57 rp->TxWidth = textFont->tf_XSize;
58 rp->TxHeight = textFont->tf_YSize;
59 rp->TxBaseline = textFont->tf_Baseline;
62 AROS_LIBFUNC_EXIT
64 } /* SetFont */