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<H2>C Specification</H2>
12<DL>
13  <DD>
14<PRE><CODE>#include &lt;revolution/os.h&gt;
15
16char* OSGetFontTexel(char* string, void* image, s32 pos, s32 stride, s32* width);</CODE></PRE>
17</DL>
18<H2>Arguments</H2>
19<TABLE border="1" cellpadding="3" cellspacing="0.1">
20  <TBODY>
21    <TR>
22<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE>string</CODE></STRONG></EM></TD>
23<TD width="520">String.</TD>
24    </TR>
25    <TR>
26<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>image</CODE></EM></STRONG></CODE></STRONG></EM></TD>
27<TD width="520">Pointer to texture image (<code>GX_TF_I4</code> format).</TD>
28    </TR>
29    <TR>
30<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE>pos</CODE></STRONG></EM></TD>
31<TD width="520">Horizontal position for retrieving font texels.</TD>
32    </TR>
33    <TR>
34<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>stride</CODE></EM></STRONG></CODE></STRONG></EM></TD>
35<TD width="520">Width of texture image / 4.</TD>
36    </TR>
37    <TR>
38<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><CODE>width</CODE></CODE></STRONG></EM></TD>
39<TD width="520">Texel width of current text character font.</TD>
40    </TR>
41  </TBODY>
42</TABLE>
43<H2>Return Values</H2>
44<P>Pointer to the next character in <strong><em><code>string</code></em></strong>.</P>
45<H2>Description</H2>
46<P>Retrieves the font texel image of the first text character from the specified string. Font data must be loaded using <A href="OSLoadFont.html"><CODE>OSLoadFont</CODE></A>.</P>
47<P>Note: The font texel image is OR'ed with the <EM><STRONG><CODE>image</CODE></STRONG></EM> buffer.</P>
48<H2>See Also</H2>
49<P><a href="OSLoadFont.html"><code>OSLoadFont()</code></a><br> <a target="contents" href="../toc.html#Font">Other Font API</a></P>
50<H2>Revision History</H2>
51<P>2006/03/01 Initial version.</P>
52<hr>
53<P>CONFIDENTIAL</p>
54</BODY>
55</HTML>