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 <title>InitializeFont</title> 8 </head> 9 <body> 10 <h1><CODE>nw::demo::GraphicsDrawing::InitializeFont</CODE> Member Function</h1> 11 <h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14bool InitializeFont( 15 <a href="../../../nw/os/IAllocator/Overview.html">os::IAllocator</a> * allocator, 16 const wchar_t * fontShaderPath, 17 const wchar_t * fontPath 18); 19</pre> 20 </div> 21 <h2>Arguments</h2> 22 <div class="section"> 23 <table class="arguments"> 24 <thead> 25 <tr> 26 <td width="15" /> 27 <th>Name</th> 28 <td>Description</td> 29 </tr> 30 </thead> 31 <tr> 32 <td>in</td> 33 <th>allocator</th> 34 <td>Allocator.</td> 35 </tr> 36 <tr> 37 <td>in</td> 38 <th>fontShaderPath</th> 39 <td>Font shader path.</td> 40 </tr> 41 <tr> 42 <td>in</td> 43 <th>fontPath</th> 44 <td>Font file path.</td> 45 </tr> </table> 46 </div> 47 <h2>Return Values</h2> 48 <div class="section">Returns <CODE>true </CODE>if initialized successfully and <CODE>false </CODE>otherwise. </div> 49 <h2>Description</h2> 50 <div class="section"> 51 <p>Initializes a font.</p> 52 </div> 53 <h1><CODE>nw::demo::GraphicsDrawing::InitializeFont</CODE> Member Function</h1> 54 <h2>Syntax</h2> 55 <div class="section"> 56 <pre class="definition"> 57bool InitializeFont( 58 void * shaderBinary, 59 size_t shaderSize, 60 void * fontBinary, 61 size_t fontSize, 62 void * drawBuffer, 63 void * stringBuffer 64); 65</pre> 66 </div> 67 <h2>Arguments</h2> 68 <div class="section"> 69 <table class="arguments"> 70 <thead> 71 <tr> 72 <td width="15" /> 73 <th>Name</th> 74 <td>Description</td> 75 </tr> 76 </thead> 77 <tr> 78 <td>in</td> 79 <th>shaderBinary</th> 80 <td>Pointer to the shader binary.</td> 81 </tr> 82 <tr> 83 <td>in</td> 84 <th>shaderSize</th> 85 <td>Size of the shader binary.</td> 86 </tr> 87 <tr> 88 <td>in</td> 89 <th>fontBinary</th> 90 <td>Pointer to the font binary.</td> 91 </tr> 92 <tr> 93 <td>in</td> 94 <th>fontSize</th> 95 <td>Size of the font binary.</td> 96 </tr> 97 <tr> 98 <td>in</td> 99 <th>drawBuffer</th> 100 <td>Pointer to the draw buffer.</td> 101 </tr> 102 <tr> 103 <td>in</td> 104 <th>stringBuffer</th> 105 <td>Buffer for text strings.</td> 106 </tr> </table> 107 </div> 108 <h2>Return Values</h2> 109 <div class="section">Returns <CODE>true </CODE>if initialized successfully and <CODE>false </CODE>otherwise. </div> 110 <h2>Description</h2> 111 <div class="section"> 112 <p>Initializes a font.</p> 113 </div> 114 <hr><p>CONFIDENTIAL</p></body> 115</html> 116