1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 22 span.virtual_style 23 { 24 font-size : 8pt; 25 color : white; 26 font-weight : bold; 27 background : #0a0; 28 border-left : solid 1px #0f0; 29 border-top : solid 1px #0f0; 30 border-right : solid 1px #060; 31 border-bottom : solid 1px #060; 32 padding-left : 2px; 33 padding-right : 2px; 34 } 35 36 span.protected_style 37 { 38 font-size : 8pt; 39 color : white; 40 font-weight : bold; 41 background : #444; 42 border-left : solid 1px #ccc; 43 border-top : solid 1px #ccc; 44 border-right : solid 1px #222; 45 border-bottom : solid 1px #222; 46 padding-left : 2px; 47 padding-right : 2px; 48 } 49 --></style> 50<title>nn::font::ResFontBase</title> 51 </head> 52 <body> 53<h1><CODE>nn::font::ResFontBase</CODE> Class</h1> 54<h2>Syntax</h2> 55 <div class="section"> 56 <pre class="definition">class ResFontBase : public <a href="../../../nn/font/Font/Overview.html">nn::font::Font</a></pre> 57 </div> 58<h2>Description</h2> 59 <div class="section"> 60<p>A base class for font classes that handle resources.</p><!-- write here --></div> 61 <a name="function" id="function"> 62<h2>Member Functions</h2> 63 <div class="section"> 64 <table class="members"> 65 <tr> 66<th class="category" colspan="3">Getting Sheet Information</th> 67 </tr> 68 <tr> 69 <td width="100"> 70<span class="protected_style" title="protected">protected</span> <span class="virtual_style" title="virtual">V</span> 71 </td> 72 <th> 73<a href="../../../nn/font/ResFontBase/GetActiveSheetNum.html"><CODE>GetActiveSheetNum</CODE></a> 74 </th> 75<td>Gets the number of active sheets.</td> 76 </tr> 77 <tr> 78 <td width="100"> 79<span class="protected_style" title="protected">protected</span> </td> 80 <th> 81<a href="../../../nn/font/ResFontBase/GetTextureObjectsBufferPtr.html"><CODE>GetTextureObjectsBufferPtr</CODE></a> 82 </th> 83<td>Gets a pointer to a texture object buffer.</td> 84 </tr> 85 <tr> 86 <td width="100"> </td> 87 <th> 88<a href="../../../nn/font/ResFontBase/SetTextureObjectsBufferPtr.html"><CODE>SetTextureObjectsBufferPtr</CODE></a> 89 </th> 90<td>Sets a pointer to a texture object buffer.</td> 91 </tr> 92 <tr> 93 <td width="100"> </td> 94 <th> 95<a href="../../../nn/font/ResFontBase/GenTextureNames.html"><CODE>GenTextureNames</CODE></a> 96 </th> 97<td>Generates texture names.</td> 98 </tr> 99 <tr> 100<td width="100"> <span class="virtual_style" title="virtual">V</span> 101 </td> 102 <th> 103<a href="../../../nn/font/ResFontBase/GetBaselinePos.html"><CODE>GetBaselinePos</CODE></a> 104 </th> 105<td>Gets the baseline position.</td> 106 </tr> 107 <tr> 108<td width="100"> <span class="virtual_style" title="virtual">V</span> 109 </td> 110 <th> 111<a href="../../../nn/font/ResFontBase/GetCellHeight.html"><CODE>GetCellHeight</CODE></a> 112 </th> 113<td>Gets the cell height.</td> 114 </tr> 115 <tr> 116<td width="100"> <span class="virtual_style" title="virtual">V</span> 117 </td> 118 <th> 119<a href="../../../nn/font/ResFontBase/GetCellWidth.html"><CODE>GetCellWidth</CODE></a> 120 </th> 121<td>Gets the cell width.</td> 122 </tr> 123 <tr> 124<th class="category" colspan="3">Constructors/Destructors</th> 125 </tr> 126 <tr> 127 <td width="100"> </td> 128 <th> 129<a href="../../../nn/font/ResFontBase/ResFontBase.html"><CODE>ResFontBase</CODE></a> 130 </th> 131<td>Constructor.</td> 132 </tr> 133 <tr> 134<td width="100"> <span class="virtual_style" title="virtual">V</span> 135 </td> 136 <th> 137<a href="../../../nn/font/ResFontBase/~ResFontBase.html"><CODE>~ResFontBase</CODE></a> 138 </th> 139<td>Destructor.</td> 140 </tr> 141 <tr> 142<th class="category" colspan="3">Getting Font Data</th> 143 </tr> 144 <tr> 145<td width="100"> <span class="virtual_style" title="virtual">V</span> 146 </td> 147 <th> 148<a href="../../../nn/font/ResFontBase/GetWidth.html"><CODE>GetWidth</CODE></a> 149 </th> 150<td>Gets the width of the font.</td> 151 </tr> 152 <tr> 153<td width="100"> <span class="virtual_style" title="virtual">V</span> 154 </td> 155 <th> 156<a href="../../../nn/font/ResFontBase/GetHeight.html"><CODE>GetHeight</CODE></a> 157 </th> 158<td>Gets the font height.</td> 159 </tr> 160 <tr> 161<td width="100"> <span class="virtual_style" title="virtual">V</span> 162 </td> 163 <th> 164<a href="../../../nn/font/ResFontBase/GetAscent.html"><CODE>GetAscent</CODE></a> 165 </th> 166<td>Gets the ascent of the font.</td> 167 </tr> 168 <tr> 169<td width="100"> <span class="virtual_style" title="virtual">V</span> 170 </td> 171 <th> 172<a href="../../../nn/font/ResFontBase/GetDescent.html"><CODE>GetDescent</CODE></a> 173 </th> 174<td>Gets the font descent.</td> 175 </tr> 176 <tr> 177<td width="100"> <span class="virtual_style" title="virtual">V</span> 178 </td> 179 <th> 180<a href="../../../nn/font/ResFontBase/GetMaxCharWidth.html"><CODE>GetMaxCharWidth</CODE></a> 181 </th> 182<td>Gets the maximum character width included in the font.</td> 183 </tr> 184 <tr> 185<td width="100"> <span class="virtual_style" title="virtual">V</span> 186 </td> 187 <th> 188<a href="../../../nn/font/ResFontBase/GetType.html"><CODE>GetType</CODE></a> 189 </th> 190<td>Gets the font type.</td> 191 </tr> 192 <tr> 193<td width="100"> <span class="virtual_style" title="virtual">V</span> 194 </td> 195 <th> 196<a href="../../../nn/font/ResFontBase/GetTextureFormat.html"><CODE>GetTextureFormat</CODE></a> 197 </th> 198<td>Gets the texture format of the font.</td> 199 </tr> 200 <tr> 201<td width="100"> <span class="virtual_style" title="virtual">V</span> 202 </td> 203 <th> 204<a href="../../../nn/font/ResFontBase/GetLineFeed.html"><CODE>GetLineFeed</CODE></a> 205 </th> 206<td>Gets the font's linefeed width.</td> 207 </tr> 208 <tr> 209<td width="100"> <span class="virtual_style" title="virtual">V</span> 210 </td> 211 <th> 212<a href="../../../nn/font/ResFontBase/GetDefaultCharWidths.html"><CODE>GetDefaultCharWidths</CODE></a> 213 </th> 214<td>Gets the font's default character widths.</td> 215 </tr> 216 <tr> 217<th class="category" colspan="3">Setting Font Data</th> 218 </tr> 219 <tr> 220<td width="100"> <span class="virtual_style" title="virtual">V</span> 221 </td> 222 <th> 223<a href="../../../nn/font/ResFontBase/SetLineFeed.html"><CODE>SetLineFeed</CODE></a> 224 </th> 225<td>Sets the font's linefeed width.</td> 226 </tr> 227 <tr> 228<td width="100"> <span class="virtual_style" title="virtual">V</span> 229 </td> 230 <th> 231<a href="../../../nn/font/ResFontBase/SetDefaultCharWidths.html"><CODE>SetDefaultCharWidths</CODE></a> 232 </th> 233<td>Sets the font's default character widths.</td> 234 </tr> 235 <tr> 236<td width="100"> <span class="virtual_style" title="virtual">V</span> 237 </td> 238 <th> 239<a href="../../../nn/font/ResFontBase/SetAlternateChar.html"><CODE>SetAlternateChar</CODE></a> 240 </th> 241<td>Changes the alternate character for the font.</td> 242 </tr> 243 <tr> 244<th class="category" colspan="3">Getting Character Data</th> 245 </tr> 246 <tr> 247<td width="100"> <span class="virtual_style" title="virtual">V</span> 248 </td> 249 <th> 250<a href="../../../nn/font/ResFontBase/GetCharWidth.html"><CODE>GetCharWidth</CODE></a> 251 </th> 252<td>Gets the character width of a character.</td> 253 </tr> 254 <tr> 255<td width="100"> <span class="virtual_style" title="virtual">V</span> 256 </td> 257 <th> 258<a href="../../../nn/font/ResFontBase/GetCharWidths.html"><CODE>GetCharWidths</CODE></a> 259 </th> 260<td>Gets character widths for a character.</td> 261 </tr> 262 <tr> 263<td width="100"> <span class="virtual_style" title="virtual">V</span> 264 </td> 265 <th> 266<a href="../../../nn/font/ResFontBase/GetGlyph.html"><CODE>GetGlyph</CODE></a> 267 </th> 268<td>Gets glyph data.</td> 269 </tr> 270 <tr> 271<td width="100"> <span class="virtual_style" title="virtual">V</span> 272 </td> 273 <th> 274<a href="../../../nn/font/ResFontBase/HasGlyph.html"><CODE>HasGlyph</CODE></a> 275 </th> 276<td>Determines whether glyph data exists.</td> 277 </tr> 278 <tr> 279<th class="category" colspan="3">Text Encoding</th> 280 </tr> 281 <tr> 282<td width="100"> <span class="virtual_style" title="virtual">V</span> 283 </td> 284 <th> 285<a href="../../../nn/font/ResFontBase/GetCharacterCode.html"><CODE>GetCharacterCode</CODE></a> 286 </th> 287<td>Gets the character encoding supported by the font.</td> 288 </tr> 289 <tr> 290<th class="category" colspan="3">Texture Interpolation</th> 291 </tr> 292 <tr> 293<td width="100"> <span class="virtual_style" title="virtual">V</span> 294 </td> 295 <th> 296<a href="../../../nn/font/ResFontBase/EnableLinearFilter.html"><CODE>EnableLinearFilter</CODE></a> 297 </th> 298<td>Specifies whether linear interpolation of textures is performed while characters are drawn.</td> 299 </tr> 300 <tr> 301<td width="100"> <span class="virtual_style" title="virtual">V</span> 302 </td> 303 <th> 304<a href="../../../nn/font/ResFontBase/IsLinearFilterEnableAtSmall.html"><CODE>IsLinearFilterEnableAtSmall</CODE></a> 305 </th> 306<td>Gets whether linear interpolation is used when small characters are displayed.</td> 307 </tr> 308 <tr> 309<td width="100"> <span class="virtual_style" title="virtual">V</span> 310 </td> 311 <th> 312<a href="../../../nn/font/ResFontBase/IsLinearFilterEnableAtLarge.html"><CODE>IsLinearFilterEnableAtLarge</CODE></a> 313 </th> 314<td>Gets whether linear interpolation is used when large characters are displayed.</td> 315 </tr> 316 <tr> 317<td width="100"> <span class="virtual_style" title="virtual">V</span> 318 </td> 319 <th> 320<a href="../../../nn/font/ResFontBase/GetTextureWrapFilterValue.html"><CODE>GetTextureWrapFilterValue</CODE></a> 321 </th> 322<td>Gets texture wrapping and filter settings.</td> 323 </tr> 324 <tr> 325<th class="category" colspan="3">Other</th> 326 </tr> 327 <tr> 328 <td width="100"> 329<span class="protected_style" title="protected">protected</span> </td> 330 <th> 331<a href="../../../nn/font/ResFontBase/IsManaging.html"><CODE>IsManaging</CODE></a> 332 </th> 333<td>Determines if it is an associated font resource.</td> 334 </tr> 335 <tr> 336 <td width="100"> 337<span class="protected_style" title="protected">protected</span> </td> 338 <th> 339<a href="../../../nn/font/ResFontBase/SetResourceBuffer.html"><CODE>SetResourceBuffer</CODE></a> 340 </th> 341<td>Sets pointers to an allocated buffer and the FINF block inside it.</td> 342 </tr> 343 <tr> 344 <td width="100"> 345<span class="protected_style" title="protected">protected</span> </td> 346 <th> 347<a href="../../../nn/font/ResFontBase/RemoveResourceBuffer.html"><CODE>RemoveResourceBuffer</CODE></a> 348 </th> 349<td>Resets the parameters that were set by the <CODE>SetResourceBuffer</CODE> function and then returns a pointer to the allocated buffer.</td> 350 </tr> 351 <tr> 352 <td width="100"> 353<span class="protected_style" title="protected">protected</span> </td> 354 <th> 355<a href="../../../nn/font/ResFontBase/GetGlyphIndex.html"><CODE>GetGlyphIndex</CODE></a> 356 </th> 357<td>Gets a character's glyph index.</td> 358 </tr> 359 <tr> 360 <td width="100"> 361<span class="protected_style" title="protected">protected</span> </td> 362 <th> 363<a href="../../../nn/font/ResFontBase/FindGlyphIndex.html"><CODE>FindGlyphIndex</CODE></a> 364 </th> 365<td>Gets a character's glyph index.</td> 366 </tr> 367 <tr> 368 <td width="100"> 369<span class="protected_style" title="protected">protected</span> </td> 370 <th> 371<a href="../../../nn/font/ResFontBase/GetCharWidthsFromIndex.html"><CODE>GetCharWidthsFromIndex</CODE></a> 372 </th> 373<td>Gets the character widths corresponding to a glyph index.</td> 374 </tr> 375 <tr> 376 <td width="100"> 377<span class="protected_style" title="protected">protected</span> </td> 378 <th> 379<a href="../../../nn/font/ResFontBase/GetGlyphFromIndex.html"><CODE>GetGlyphFromIndex</CODE></a> 380 </th> 381<td>Gets the glyph data that corresponds to a glyph index.</td> 382 </tr> 383 <tr> 384 <td width="100"> 385<span class="protected_style" title="protected">protected</span> <span class="static_style" title="static">S</span> </td> 386 <th> 387<a href="../../../nn/font/ResFontBase/SetGlyphMember.html"><CODE>SetGlyphMember</CODE></a> 388 </th> 389<td>Sets <CODE>Glyph</CODE> member variables based on a <CODE>FontTextureGlyph</CODE> structure.</td> 390 </tr> </table> 391 </div> 392 </a> 393<h2>Class Hierarchy</h2> 394 <div class="section"> 395<p class="hierarchy"><a href="../../../nn/font/Font/Overview.html">nn::font::Font</a><br /> <b>nn::font::ResFontBase</b> 396 </p> 397 </div> 398<h2>Revision History</h2> 399 <div class="section"> 400 <dl class="history"> 401 <dt>2010/11/10</dt> 402<dd>Initial version.<br /> 403 </dd> 404 </dl> 405 </div> 406 <hr><p>CONFIDENTIAL</p></body> 407</html>