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