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>FNTGetTexture</TITLE>
8</HEAD>
9<BODY>
10<H1>FNTGetTexture</H1>
11
12<H2>Syntax</H2>
13<dl><dd><pre class="construction">
14#include &lt;revolution/fnt.h&gt;
15
16char* FNTGetTexture(
17    const <A href="FNTHeader.html">FNTHeader</A>* font,
18    const char* string,
19    <A href="FNTTexture.html">FNTTexture</A>* tex );
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>tex</TH>
35<TD>Pointer to a structure that stores font texture information.</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 font texture information of the first text character in the specified string.<BR>The pointer to the texture image sheet, the position of the font in the sheet, etc. are stored as font texture information.<BR>The texel width of the first character is stored in <SPAN class="argument">tex-&gt;charWidth</SPAN>.</P>
45
46<P>The character encoding method can be set using <A href="FNTSetEncoding.html"><CODE>FNTSetEncoding</CODE></A>.</P>
47
48<H2>See Also</H2>
49<P class="reference">
50<A href="FNTSetEncoding.html">FNTSetEncoding</A>,
51<A href="FNTGetTextureFormat.html">FNTGetTextureFormat</A>
52</P>
53
54<H2>Revision History</H2>
55<P>
562006/10/01 Initial version.<BR>
57</P>
58
59<hr><p>CONFIDENTIAL</p></body>
60</HTML>