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>FNTGetWidth</TITLE> 8</HEAD> 9<BODY> 10<H1>FNTGetWidth</H1> 11 12<H2>Syntax</H2> 13<dl><dd><pre class="construction"> 14#include <revolution/fnt.h> 15 16char* FNTGetWidth( 17 const <A href="FNTHeader.html">FNTHeader</A>* font, 18 const char* string, 19 s32* width ); 20</pre></dd></dl> 21 22<H2>Arguments</H2> 23<TABLE class="arguments" border="1" > 24 <TBODY> 25 <TR> 26<TH>font</TH> 27<TD>Pointer to the font data buffer.<BR>Initialization using <A href="FNTConstruct.html"><CODE>FNTConstruct</CODE></A> or <A href="FNTStreamingConstruct.html"><CODE>FNTStreamingConstruct</CODE></A> is required.</TD> 28 </TR> 29 <TR> 30<TH>string</TH> 31<TD>String.</TD> 32 </TR> 33 <TR> 34<TH>width</TH> 35<TD>Pointer to the variable storing the texel width of the first character of the specified string.</TD> 36 </TR> 37 </TBODY> 38</TABLE> 39 40<H2>Return Values</H2> 41<P>Pointer to the next character in <SPAN class="argument">string</SPAN>.</P> 42 43<H2>Description</H2> 44<P>Gets the texel width of the first text character in the specified string.</P> 45<P>The character encoding method can be set using <A href="FNTSetEncoding.html"><CODE>FNTSetEncoding</CODE></A>.</P> 46 47<H2>See Also</H2> 48<P class="reference"> 49<A href="FNTSetEncoding.html">FNTSetEncoding</A> 50</P> 51 52<H2>Revision History</H2> 53<P> 542006/10/01 Initial version.<BR> 55</P> 56 57<hr><p>CONFIDENTIAL</p></body> 58</html>