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 14<h2>Syntax</h2> 15<dl><dd><pre class="construction"> 16#include <revolution/os.h> 17 18char* OSGetFontWidth(char* string, s32* width); 19</pre></dd></dl> 20 21<h2>Arguments</h2> 22<TABLE class="arguments" border="1" > 23 <tr> 24<TH>string</TH> 25<TD>String.</TD> 26 </tr> 27 <tr> 28<TH><CODE>width</CODE></TH> 29<TD>Texel width of current text character font.</TD> 30 </tr> 31</TABLE> 32 33<h2>Return Values</h2> 34<P>Pointer to the next character in <SPAN class="argument">string</SPAN>.</P> 35 36<H2>Description</H2> 37<P>Gets the texel width of the first text character in the specified string. Font data must be loaded by the <A href="OSInitFont.html"><CODE>OSInitFont</CODE></A> or <A href="OSLoadFont.html"><CODE>OSLoadFont</CODE></A> function.</P> 38 39<h2>See Also</h2> 40<P class="reference"> 41<a target="contents" href="../toc.html#Font">Font Functions</a> 42</p> 43 44<H2>Revision History</H2> 45<P> 462006/03/01 Initial version.<br> 47</P> 48 49<hr><p>CONFIDENTIAL</p></body> 50</html>