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