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>OSGetFontTexel</TITLE>
8</HEAD>
9<BODY>
10<H1>OSGetFontTexel</H1>
11
12<H2>Syntax</H2>
13<dl><dd><pre class="construction">
14#include &lt;revolution/os.h&gt;
15
16char* OSGetFontTexel(char* string, void* image, s32 pos, s32 stride, 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>image</TH>
28<TD>Pointer to the texture image (<CODE>GX_TF_I4</CODE> format).</TD>
29    </TR>
30    <TR>
31<TH>pos</TH>
32<TD>Horizontal position for retrieving font texels.</TD>
33    </TR>
34    <TR>
35<TH>stride</TH>
36<TD>Specifies (Width of texture image / 4).</TD>
37    </TR>
38    <TR>
39<TH>width</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>Retrieves the font texel image of the first text character from the specified string. Font data must be loaded using the <A href="OSLoadFont.html"><CODE>OSLoadFont</CODE></A> function.</P>
50<P>Note: The font texel image is OR'ed with the <SPAN class="argument">image</SPAN> buffer.</P>
51
52<H2>See Also</H2>
53<P class="reference">
54<A target="contents" href="../toc.html#Font">Font Functions</A>, <A href="OSLoadFont.html">OSLoadFont</A>
55</P>
56
57<H2>Revision History</H2>
58<P>
592006/03/01 Initial version.<br>
60</P>
61
62<hr><p>CONFIDENTIAL</p></body>
63</HTML>