1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
7<TITLE>OSGetFontTexture</TITLE>
8</HEAD>
9<BODY>
10<H1>OSGetFontTexture</H1>
11
12<H2>Syntax</H2>
13<dl><dd><pre class="construction">
14#include &lt;revolution/os.h&gt;
15
16char* OSGetFontTexture(char* string, void** image, s32 *x, s32 *y, s32* width);
17</pre></dd></dl>
18
19<H2>Arguments</H2>
20<TABLE class="arguments" border="1" >
21  <TBODY>
22    <TR>
23<TH>string</TH>
24<TD>String.</TD>
25    </TR>
26    <TR>
27<TH><STRONG><EM><CODE>image</CODE></EM></STRONG></TH>
28<TD>Pointer to the raw image of a font texture (<CODE>GX_TF_I4</CODE> format).</TD>
29    </TR>
30    <TR>
31<TH><STRONG><EM><CODE>x</CODE></EM></STRONG></TH>
32<TD>Horizontal position of the current character font in the returned texture image (<SPAN class="argument">image</SPAN>).</TD>
33    </TR>
34    <TR>
35<TH>y</TH>
36<TD>Vertical position of the current character font in the returned texture image (<SPAN class="argument">image</SPAN>).</TD>
37    </TR>
38    <TR>
39<TH><CODE>width</CODE></TH>
40<TD>Texel width of current text character font.</TD>
41    </TR>
42  </TBODY>
43</TABLE>
44
45<H2>Return Values</H2>
46<P>Pointer to the next character in <SPAN class="argument">string</SPAN>.</P>
47
48<H2>Description</H2>
49<P>Gets a pointer to the font texture image of the first text character in the specified string. Font data must be loaded using the <A href="OSInitFont.html"><CODE>OSInitFont</CODE></A> function.</P>
50
51<H2>See Also</H2>
52<P class="reference">
53<A target="contents" href="../toc.html#Font">Font Functions</A>, <A href="OSInitFont.html">OSInitFont</A>
54</P>
55
56<H2>Revision History</H2>
57<P>
582006/03/01 Initial version.<br>
59</P>
60
61<hr><p>CONFIDENTIAL</p></body>
62</HTML>