2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function SetFont()
8 #include "graphics_intern.h"
9 #include <graphics/rastport.h>
10 #include <graphics/text.h>
12 /*****************************************************************************
15 #include <graphics/rastport.h>
16 #include <graphics/text.h>
17 #include <proto/graphics.h>
19 AROS_LH2(void, SetFont
,
22 AROS_LHA(struct RastPort
*, rp
, A1
),
23 AROS_LHA(struct TextFont
*, textFont
, A0
),
26 struct GfxBase
*, GfxBase
, 11, Graphics
)
29 Select a new font for rendering strings in a RastPort.
32 rp - Change this RastPort
33 textFont - This is the new font
50 *****************************************************************************/
57 rp
->TxWidth
= textFont
->tf_XSize
;
58 rp
->TxHeight
= textFont
->tf_YSize
;
59 rp
->TxBaseline
= textFont
->tf_Baseline
;