2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include "graphics_intern.h"
10 /*****************************************************************************
13 #include <graphics/text.h>
14 #include <proto/graphics.h>
16 AROS_LH2(void, AskFont
,
19 AROS_LHA(struct RastPort
*, rp
, A1
),
20 AROS_LHA(struct TextAttr
*, textAttr
, A0
),
23 struct GfxBase
*, GfxBase
, 79, Graphics
)
26 Query the attributes of the current font in a RastPort.
29 rp - Query this RastPort.
32 textAttr will contain a description of the font.
46 *****************************************************************************/
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
;