Minor fixes to comments.
[AROS.git] / rom / graphics / askfont.c
bloba613004de250579a290914f450c4a0dc1d765f7a
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include "graphics_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <graphics/text.h>
14 #include <proto/graphics.h>
16 AROS_LH2(void, AskFont,
18 /* SYNOPSIS */
19 AROS_LHA(struct RastPort *, rp, A1),
20 AROS_LHA(struct TextAttr *, textAttr, A0),
22 /* LOCATION */
23 struct GfxBase *, GfxBase, 79, Graphics)
25 /* FUNCTION
26 Query the attributes of the current font in a RastPort.
28 INPUTS
29 rp - Query this RastPort.
31 RESULT
32 textAttr will contain a description of the font.
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 HISTORY
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
50 textAttr->ta_Name = rp->Font->tf_Message.mn_Node.ln_Name;
51 textAttr->ta_YSize = rp->Font->tf_YSize;
52 textAttr->ta_Style = rp->Font->tf_Style;
53 textAttr->ta_Flags = rp->Font->tf_Flags;
55 AROS_LIBFUNC_EXIT
56 } /* AskFont */