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>FNTGetDataSize</TITLE>
8</HEAD>
9<BODY>
10<H1>FNTGetDataSize</H1>
11
12<H2>Syntax</H2>
13<dl><dd><pre class="construction">
14#include &lt;revolution/fnt.h&gt;
15
16u32 FNTGetDataSize( void* resource );
17</pre></dd></dl>
18
19<H2>Arguments</H2>
20<TABLE class="arguments" border="1" >
21  <TBODY>
22    <TR>
23<TH>resource</TH>
24<TD>Pointer to the start of font resource data loaded into memory.<BR>If font resources are expanded while being loaded successively into memory, at least the first <CODE>FNT_RESOURCE_HEADER_SIZE</CODE> (= 16 KB) worth of data must be loaded.<BR>Must be 32-byte aligned.</TD>
25    </TR>
26  </TBODY>
27</TABLE>
28
29<H2>Return Values</H2>
30<P>If execution ends normally, this function returns the size of the font data buffer required to use the font. Returns 0 if the font data cannot be used.</P>
31
32<H2>Description</H2>
33<P>Gets the font data buffer size required to use the font.</P>
34<P>The buffer size required to use a font is the same when using <A href="FNTConstruct.html"><CODE>FNTConstruct()</CODE></A> as it is when using the combination <A href="FNTInitStreamingConstruct.html"><CODE>FNTInitStreamingConstruct()</CODE></A> and <A href="FNTStreamingConstruct.html"><CODE>FNTStreamingConstruct()</CODE></A>.</P>
35
36<H2>See Also</H2>
37<P class="reference">
38<A href="FNTConstruct.html">FNTConstruct</A>,
39<A href="FNTInitStreamingConstruct.html">FNTInitStreamingConstruct</A>,
40<A href="FNTStreamingConstruct.html">FNTStreamingConstruct</A>
41</P>
42
43<H2>Revision History</H2>
44<P>
452006/10/01 Initial version.<BR>
46</P>
47
48<hr><p>CONFIDENTIAL</p></body>
49</HTML>