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

📄 group__system__font.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!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>MiniGUI V1.6.10 API Reference: System charset and font operations</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>System charset and font operations<br><small>[<a class="el" href="group__gdi__fns.htm">GDI functions</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__system__font.htm#ga9">SYSLOGFONT_DEFAULT</a>&nbsp;&nbsp;&nbsp;0<li>#define <a class="el" href="group__system__font.htm#ga10">SYSLOGFONT_WCHAR_DEF</a>&nbsp;&nbsp;&nbsp;1<li>#define <a class="el" href="group__system__font.htm#ga11">SYSLOGFONT_FIXED</a>&nbsp;&nbsp;&nbsp;2<li>#define <a class="el" href="group__system__font.htm#ga12">SYSLOGFONT_CAPTION</a>&nbsp;&nbsp;&nbsp;3<li>#define <a class="el" href="group__system__font.htm#ga13">SYSLOGFONT_MENU</a>&nbsp;&nbsp;&nbsp;4<li>#define <a class="el" href="group__system__font.htm#ga14">SYSLOGFONT_CONTROL</a>&nbsp;&nbsp;&nbsp;5</ul><h2>Functions</h2><ul><li>static <a class="el" href="struct__LOGFONT.htm">PLOGFONT</a> GUIAPI <a class="el" href="group__system__font.htm#ga1">GetSystemFont</a> (int font_id)<dl class="el"><dd class="mdescRight">Gets the system logical font through an font identifier.  <a href="#ga1"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__system__font.htm#ga2">GetSysFontMaxWidth</a> (int font_id)<dl class="el"><dd class="mdescRight">Gets the maximal width of a single-byte character of a system font.  <a href="#ga2"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__system__font.htm#ga3">GetSysFontAveWidth</a> (int font_id)<dl class="el"><dd class="mdescRight">Gets the average width of a single-byte character of a system font.  <a href="#ga3"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__system__font.htm#ga4">GetSysFontHeight</a> (int font_id)<dl class="el"><dd class="mdescRight">Gets the height of a single-byte character of a system font.  <a href="#ga4"></a><br></dl><li>MG_EXPORT const char *GUIAPI <a class="el" href="group__system__font.htm#ga5">GetSysCharset</a> (<a class="el" href="group__simple__types.htm#ga0">BOOL</a> wchar)<dl class="el"><dd class="mdescRight">Gets the current system charset.  <a href="#ga5"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__system__font.htm#ga6">GetSysCharHeight</a> (void)<dl class="el"><dd class="mdescRight">Gets the height of a character of the default system font.  <a href="#ga6"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__system__font.htm#ga7">GetSysCharWidth</a> (void)<dl class="el"><dd class="mdescRight">Gets the width of a single-byte character of the default system font.  <a href="#ga7"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__system__font.htm#ga8">GetSysCCharWidth</a> (void)<dl class="el"><dd class="mdescRight">Gets the width of a multi-byte character of the default system font.  <a href="#ga8"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>MiniGUI creates a few system fonts to draw menu text, window caption, or other general items. MiniGUI at least creates two system fonts: one mono-space logical font for single-byte charset, and one mono-space logical font for multi-byte charset. For the multi-byte charset, the width of one multi-byte character should be equal to the width of two single-byte characters. <hr><h2>Define Documentation</h2><a class="anchor" name="ga12" doxytag="gdi.h::SYSLOGFONT_CAPTION"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define SYSLOGFONT_CAPTION&nbsp;&nbsp;&nbsp;3          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__system__font.htm#ga1">GetSystemFont</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06124">6124</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga14" doxytag="gdi.h::SYSLOGFONT_CONTROL"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define SYSLOGFONT_CONTROL&nbsp;&nbsp;&nbsp;5          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__system__font.htm#ga1">GetSystemFont</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06136">6136</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga9" doxytag="gdi.h::SYSLOGFONT_DEFAULT"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define SYSLOGFONT_DEFAULT&nbsp;&nbsp;&nbsp;0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__system__font.htm#ga1">GetSystemFont</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06106">6106</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga11" doxytag="gdi.h::SYSLOGFONT_FIXED"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define SYSLOGFONT_FIXED&nbsp;&nbsp;&nbsp;2          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__system__font.htm#ga1">GetSystemFont</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06118">6118</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga13" doxytag="gdi.h::SYSLOGFONT_MENU"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define SYSLOGFONT_MENU&nbsp;&nbsp;&nbsp;4          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__system__font.htm#ga1">GetSystemFont</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06130">6130</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga10" doxytag="gdi.h::SYSLOGFONT_WCHAR_DEF"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define SYSLOGFONT_WCHAR_DEF&nbsp;&nbsp;&nbsp;1          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__system__font.htm#ga1">GetSystemFont</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06112">6112</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga8" doxytag="gdi.h::GetSysCCharWidth"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int GUIAPI GetSysCCharWidth           </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>Gets the width of a multi-byte character of the default system font. <p>This function returns the width of a multi-byte character of the default system font. MiniGUI uses mono-space font as the system default font.<p><dl compact><dt><b>Returns:</b></dt><dd>The width of multi-byte character of the default system font.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__system__font.htm#ga6">GetSysCharHeight</a>, <a class="el" href="group__system__font.htm#ga7">GetSysCharWidth</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga6" doxytag="gdi.h::GetSysCharHeight"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int GUIAPI GetSysCharHeight           </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>Gets the height of a character of the default system font. 

⌨️ 快捷键说明

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