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<H2>C Specification</H2> 12<DL> 13 <DD> 14<PRE><CODE>#include <revolution/os.h> 15 16char* OSGetFontTexture(char* string, void** image, s32 *x, s32 *y, 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>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>Pointer to font texture raw image (<code>GX_TF_I4</code> format).</TD> 28 </TR> 29 <TR> 30<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>x</CODE></EM></STRONG></CODE></STRONG></EM></TD> 31<TD>Horizontal position coordinate of the current text character font in the returned texture image <STRONG><EM><CODE>image</CODE></EM></STRONG>.</TD> 32 </TR> 33 <TR> 34<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>y</CODE></EM></STRONG></CODE></STRONG></EM></TD> 35<TD>Vertical position coordinate of the current text character font in the returned texture image <STRONG><EM><CODE>image</CODE></EM></STRONG>.</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>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>Gets a pointer to the font texture image of the first text character in the specified string. You must use the <A href="OSInitFont.html"><CODE>OSInitFont</CODE></A> function to load the font data.</P> 47<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> 48<H2>See Also</H2> 49<P><A href="OSInitFont.html"><CODE>OSInitFont</CODE></A>, <A target="contents" href="../toc.html#Font">Font Functions</A></P> 50<H2>Revision History</H2> 51<P>03/01/2006 Initial version.</P> 52</BODY> 53</HTML>