1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<title>OSGetFontWidth</title> 9</head> 10 11<body> 12<h1>OSGetFontWidth</h1> 13<h2>C Specification</h2> 14 15<dl> 16<dd><pre><CODE>#include <revolution/os.h> 17 18</code>char* OSGetFontWidth (char* string, s32* width);</pre> 19 </dd> 20</dl> 21 22<h2>Arguments</h2> 23<TABLE border="1" cellpadding="3" cellspacing="0.1"> 24 <tr> 25<TD width="120" bgcolor="#ffffe8"><em><strong><code><STRONG><EM><CODE>string</CODE></EM></STRONG></code></strong></em></TD> 26<TD width="520">Character string.</TD> 27 </tr> 28 <tr> 29<TD width="120" bgcolor="#ffffe8"><em><strong><code><STRONG><EM><CODE>width</CODE></EM></STRONG></code></strong></em></TD> 30<TD width="520">Texel width of current text character font.</TD> 31 </tr> 32</TABLE> 33<h2>Return Values</h2> 34 35<P>Pointer to the next text character in <strong><em><code>string</code></em></strong>.</P> 36<H2>Description</H2> 37<P>Gets the texel width of the first text character in the specified string. Font data must be loaded with the <a href="OSInitFont.html"><code>OSInitFont</code></a> or <a href="OSLoadFont.html"><code>OSLoadFont</code></a> function.</P> 38<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> 39<h2>See Also</h2> 40<p><a target="contents" href="../toc.html#Font">Font Functions</a></p> 41<H2>Revision History</H2> 42<P>03/01/2006 Initial version.</P> 43</body> 44</html>