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>OSInitFont</TITLE> 8</HEAD> 9<BODY> 10<H1>OSInitFont</H1> 11 12<H2>Syntax</H2> 13<dl><dd><pre class="construction"> 14#include <revolution/os.h> 15 16#define OS_FONT_SIZE_ANSI (288 + 131072) 17#define OS_FONT_SIZE_SJIS (3840 + 1179648) 18 19BOOL OSInitFont(OSFontHeader* fontData); 20</pre></dd></dl> 21 22<H2>Arguments</H2> 23<TABLE class="arguments" border="1" > 24 <TBODY> 25 <TR> 26<TH><STRONG><EM><CODE>fontData</CODE></EM></STRONG></TH> 27<TD>Pointer to the font data buffer that has size <CODE>OS_FONT_SIZE_*</CODE>, which depends on the font encoding. Must be 32-byte aligned.</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31 32<H2>Return Values</H2> 33<P><CODE>TRUE</CODE> if successfully completes; <CODE>FALSE</CODE> if font data is not available for use.</P> 34 35<H2>Description</H2> 36<P>Loads and expands ROM font data. The <code>OSInitFont</code> function should be used in conjunction with the <a href="OSGetFontTexture.html"><code>OSGetFontTexture</code></a> function. To conserve main memory, use the <A href="OSLoadFont.html"><CODE>OSLoadFont</CODE></A> function instead of <CODE>OSInitFont</CODE>.</P> 37 38<H2>See Also</H2> 39<P class="reference"> 40<A target="contents" href="../toc.html#Font">Font Functions</A><BR><A href="OSGetFontTexture.html">OSGetFontTexture</A> 41</P> 42 43<H2>Revision History</H2> 44<P> 452006/03/01 Initial version.<br> 46</P> 47 48<hr><p>CONFIDENTIAL</p></body> 49</HTML>