⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 font_8h.html

📁 BlueLab3 bluetooth API 说明文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>BlueLab: font.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.8 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>font.h File Reference</h1>Font subsystem support. <a href="#_details">More...</a><p><h2>Typedefs</h2><ul><li>typedef <a class="el" href="csrtypes_8h.html#a4">uint16</a> <a class="el" href="font_8h.html#a0">FontId</a><dl class="el"><dd class="mdescRight">The index of a font. Should be less than the value returned from FontInit.  <a href="#a0"></a><br></dl><li>typedef <a class="el" href="csrtypes_8h.html#a4">uint16</a> <a class="el" href="font_8h.html#a1">ucs2char</a><dl class="el"><dd class="mdescRight">A character in UCS-2.  <a href="#a1"></a><br></dl></ul><h2>Functions</h2><ul><li><a class="el" href="font_8h.html#a0">FontId</a> <a class="el" href="font_8h.html#a2">FontInit</a> (void)<dl class="el"><dd class="mdescRight">Initalise the font subsystem.  <a href="#a2"></a><br></dl><li><a class="el" href="csrtypes_8h.html#a2">size_t</a> <a class="el" href="font_8h.html#a3">FontGetGlyph</a> (<a class="el" href="font_8h.html#a0">FontId</a> font, <a class="el" href="font_8h.html#a1">ucs2char</a> c, <a class="el" href="csrtypes_8h.html#a4">uint16</a> *glyph, <a class="el" href="csrtypes_8h.html#a2">size_t</a> max_glyph_wid)<dl class="el"><dd class="mdescRight">Retrieve one character glyph from a font.  <a href="#a3"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Font subsystem support. <p>Functions to control the font subsystem.<hr><h2>Typedef Documentation</h2><a class="anchor" name="a0" doxytag="font.h::FontId" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> typedef <a class="el" href="csrtypes_8h.html#a4">uint16</a> <a class="el" href="font_8h.html#a0">FontId</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>The index of a font. Should be less than the value returned from FontInit. <p>    </td>  </tr></table><a class="anchor" name="a1" doxytag="font.h::ucs2char" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> typedef <a class="el" href="csrtypes_8h.html#a4">uint16</a> <a class="el" href="font_8h.html#a1">ucs2char</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>A character in UCS-2. <p>    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="a2" doxytag="font.h::FontInit" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="font_8h.html#a0">FontId</a> FontInit           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Initalise the font subsystem. <p>Returns the number of fonts found, or zero if no fonts were found (for example, if the fonts.app file wasn't found in the filesystem.)     </td>  </tr></table><a class="anchor" name="a3" doxytag="font.h::FontGetGlyph" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="csrtypes_8h.html#a2">size_t</a> FontGetGlyph           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="font_8h.html#a0">FontId</a>&nbsp;</td>          <td class="mdname" nowrap> <em>font</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap><a class="el" href="font_8h.html#a1">ucs2char</a>&nbsp;</td>          <td class="mdname" nowrap> <em>c</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap><a class="el" href="csrtypes_8h.html#a4">uint16</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>glyph</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap><a class="el" href="csrtypes_8h.html#a2">size_t</a>&nbsp;</td>          <td class="mdname" nowrap> <em>max_glyph_wid</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Retrieve one character glyph from a font. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>font</em>&nbsp;</td><td>The index of the font to get the glyph from </td></tr>    <tr><td></td><td valign=top><em>c</em>&nbsp;</td><td>The character to get from that font </td></tr>    <tr><td></td><td valign=top><em>glyph</em>&nbsp;</td><td>A buffer to write the glyph data into </td></tr>    <tr><td></td><td valign=top><em>max_glyph_wid</em>&nbsp;</td><td>The number of words which can be written to glyph (must be zero if glyph is NULL)</td></tr>  </table></dl>Returns the width of the glyph if it was found and fits in the buffer provided (or no buffer was provided), otherwise returns (size_t) -1.     </td>  </tr></table></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -