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>FNTMetrics</TITLE> 8</HEAD> 9<BODY> 10<H1>FNTMetrics</H1> 11 12<H2>C Specification</H2> 13<DL> 14 <DD><PRE><CODE>#include <revolution/fnt.h></CODE></PRE></DD> 15 <DD><PRE><CODE>typedef struct 16{ 17 u8 width; 18 u8 height; 19 u8 maxCharWidth; 20 u8 ascent; 21 u8 descent; 22 s8 baselinePos; 23 s8 leading; 24 u8 cellWidth; 25 u8 cellHeight; 26 u16 texWidth; 27 u16 texHeight; 28} FNTMetrics;</CODE></PRE></DD> 29</DL> 30 31<H2>Elements</H2> 32<TABLE border="1" width="100%"> 33 <TBODY> 34 <TR> 35 <TD width="13%"><EM><STRONG>width</STRONG></EM></TD> 36 <TD width="87%">Font width (in texels). (The font width can be used as the standard for tabs and scaling.)</TD> 37 </TR> 38 <TR> 39 <TD><EM><STRONG>height</STRONG></EM></TD> 40 <TD>Font height (in texels).</TD> 41 </TR> 42 <TR> 43 <TD><EM><STRONG>maxCharWidth</STRONG></EM></TD> 44 <TD>The number of texels in the widest text character.</TD> 45 </TR> 46 <TR> 47 <TD><EM><STRONG>ascent</STRONG></EM></TD> 48 <TD>The character ascent (number of texels above the base line).</TD> 49 </TR> 50 <TR> 51 <TD><EM><STRONG>descent</STRONG></EM></TD> 52 <TD>The character descent (the number of texels below the base line).</TD> 53 </TR> 54 <TR> 55 <TD><EM><STRONG>baselinePos</STRONG></EM></TD> 56 <TD>Baseline position (in texels).</TD> 57 </TR> 58 <TR> 59 <TD><EM><STRONG>leading</STRONG></EM></TD> 60 <TD>Line spacing (in texels).</TD> 61 </TR> 62 <TR> 63 <TD><EM><STRONG>cellWidth</STRONG></EM></TD> 64 <TD>Cell width (in texels). (A cell is the rectangular area surrounding a single character.)</TD> 65 </TR> 66 <TR> 67 <TD><EM><STRONG>cellHeight</STRONG></EM></TD> 68 <TD>Cell height (in texels). (A cell is the rectangular area surrounding a single character.)</TD> 69 </TR> 70 <TR> 71 <TD><EM><STRONG>texWidth</STRONG></EM></TD> 72 <TD>Texture image sheet width (in texels).</TD> 73 </TR> 74 <TR> 75 <TD><EM><STRONG>texHeight</STRONG></EM></TD> 76 <TD>Texture image sheet height (in texels).</TD> 77 </TR> 78 </TBODY> 79</TABLE> 80 81<H2>Description</H2> 82<P>This structure stores size information for fonts.</P> 83 84<H2>See Also</H2> 85<P> 86<A href="FNTGetMetrics.html"><CODE>FNTGetMetrics</CODE></A> 87</P> 88 89<H2>Revision History</H2> 90<P>2006/10/01 Initial version.</P> 91 92<HR> 93<P>CONFIDENTIAL</P> 94</BODY> 95</HTML>