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 <revolution/os.h> 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><STRONG><EM><CODE>string</CODE></EM></STRONG></CODE></STRONG></EM></TD> 23<TD width="520">Character 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><code><EM><STRONG>pos</STRONG></EM></code></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><STRONG><EM><CODE>width</CODE></EM></STRONG></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 text 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 the <A href="OSLoadFont.html"><CODE>OSLoadFont</CODE></A> function.</P> 47<P><STRONG>Note:</STRONG> The font texel image is OR'ed with the <EM><STRONG><CODE>image</CODE></STRONG></EM> buffer.</P> 48<P><STRONG>Note: </STRONG><font color="red">This font is currently used on a provisional basis. It may not be allowed on the product version. </font>For the product version of Revolution, we plan to prepare a new font set that uses the internal flash memory. A new font library for accessing this font will be prepared in future SDKs. </p> 49<H2>See Also</H2> 50<P><a href="OSLoadFont.html"><code>OSLoadFont</code></a>, <a target="contents" href="../list.html#Font">Font Functions</a></P> 51<H2>Revision History</H2> 52<P>03/01/2006 Initial version.</P> 53</BODY> 54</HTML>