New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / graphics / askfont.c
blob7f2b2c5671aaa8bc1729ed5484770d55dd625a44
1 /*
2 Copyright © 1995-2001, 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
49 AROS_LIBBASE_EXT_DECL(struct GfxBase *,GfxBase)
51 textAttr->ta_Name = rp->Font->tf_Message.mn_Node.ln_Name;
52 textAttr->ta_YSize = rp->Font->tf_YSize;
53 textAttr->ta_Style = rp->Font->tf_Style;
54 textAttr->ta_Flags = rp->Font->tf_Flags;
56 AROS_LIBFUNC_EXIT
57 } /* AskFont */