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

📄 group__font__fns.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 5 页
字号:
  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The glyph bitmap structure.     </td>  </tr></table><a class="anchor" name="ga1" doxytag="gdi.h::LOGFONT"></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">typedef struct <a class="el" href="struct__LOGFONT.htm">_LOGFONT</a>  <a class="el" href="struct__LOGFONT.htm">LOGFONT</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The logical font structure.     </td>  </tr></table><a class="anchor" name="ga2" doxytag="gdi.h::PLOGFONT"></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">typedef <a class="el" href="struct__LOGFONT.htm">LOGFONT</a> * <a class="el" href="struct__LOGFONT.htm">PLOGFONT</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Data type of pointer to a LOGFONT. <p><p>Definition at line <a class="el" href="gdi_8h-source.htm#l05474">5474</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga4" doxytag="gdi.h::WORDINFO"></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">typedef struct <a class="el" href="struct__WORDINFO.htm">_WORDINFO</a> <a class="el" href="struct__WORDINFO.htm">WORDINFO</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Date type of <a class="el" href="struct__WORDINFO.htm">_WORDINFO</a>. <p><p>Definition at line <a class="el" href="gdi_8h-source.htm#l05486">5486</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><hr><h2>Enumeration Type Documentation</h2><a class="anchor" name="ga201" doxytag="gdi.h::mg_FT_LcdFilter"></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">enum <a class="el" href="group__font__fns.htm#ga201">mg_FT_LcdFilter</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>List of values to identify various types of LCD filters, Note a freetype2 specific definition. <dl compact><dt><b>Enumeration values: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em><a class="anchor" name="gga201a458" doxytag="MG_SMOOTH_NONE"></a>MG_SMOOTH_NONE</em>&nbsp;</td><td>equal to FT_LCD_FILTER_NONE </td></tr><tr><td valign="top"><em><a class="anchor" name="gga201a459" doxytag="MG_SMOOTH_DEFAULT"></a>MG_SMOOTH_DEFAULT</em>&nbsp;</td><td>equal to FT_LCD_FILTER_DEFAULT </td></tr><tr><td valign="top"><em><a class="anchor" name="gga201a460" doxytag="MG_SMOOTH_LIGHT"></a>MG_SMOOTH_LIGHT</em>&nbsp;</td><td>equal to FT_LCD_FILTER_LIGHT </td></tr><tr><td valign="top"><em><a class="anchor" name="gga201a461" doxytag="MG_SMOOTH_LEGACY"></a>MG_SMOOTH_LEGACY</em>&nbsp;</td><td>equal to FT_LCD_FILTER_LEGACY </td></tr><tr><td valign="top"><em><a class="anchor" name="gga201a462" doxytag="MG_SMOOTH_MAX"></a>MG_SMOOTH_MAX</em>&nbsp;</td><td>equal to FT_LCD_FILTER_MAX </td></tr></table></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06020">6020</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="ga13" doxytag="gdi.h::CreateLogFont"></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"><a class="el" href="struct__LOGFONT.htm">PLOGFONT</a> GUIAPI CreateLogFont           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>type</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>family</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>charset</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char&nbsp;</td>          <td class="mdname" nowrap> <em>weight</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char&nbsp;</td>          <td class="mdname" nowrap> <em>slant</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char&nbsp;</td>          <td class="mdname" nowrap> <em>flip</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char&nbsp;</td>          <td class="mdname" nowrap> <em>other</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char&nbsp;</td>          <td class="mdname" nowrap> <em>underline</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char&nbsp;</td>          <td class="mdname" nowrap> <em>struckout</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>size</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>rotation</em></td>        </tr>        <tr>          <td class="md"></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>Creates a logical font. <p>This function creates a logical font.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>The type of the logical font, can be one of the values:<ul><li>FONT_TYPE_NAME_BITMAP_RAW<br> Creates a logical font by using raw bitmap device font, i.e. mono-space bitmap font.</li><li>FONT_TYPE_NAME_BITMAP_VAR<br> Creates a logical font by using var-width bitmap device font.</li><li>FONT_TYPE_NAME_SCALE_TTF<br> Creates a logical font by using scalable TrueType device font.</li><li>FONT_TYPE_NAME_SCALE_T1F<br> Creates a logical font by using scalable Adobe Type1 device font.</li><li>FONT_TYPE_NAME_ALL<br> Creates a logical font by using any type device font. </li></ul></td></tr>    <tr><td valign="top"></td><td valign="top"><em>family</em>&nbsp;</td><td>The family of the logical font, such as "Courier", "Helvetica", and so on. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>charset</em>&nbsp;</td><td>The charset of the logical font. You can specify a sigle-byte charset like "ISO8859-1", or a multi-byte charset like "GB2312-0". </td></tr>    <tr><td valign="top"></td><td valign="top"><em>weight</em>&nbsp;</td><td>The weight of the logical font, can be one of the values:<ul><li>FONT_WEIGHT_ALL<br> Any one.</li><li>FONT_WEIGHT_REGULAR<br> Regular font.</li><li>FONT_WEIGHT_BOLD<br> Bold font.</li><li>FONT_WEIGHT_BOOK<br> Anti-aliase font.</li><li>FONT_WEIGHT_LIGHT<br> Draw the glyph border with the background color. </li></ul></td></tr>    <tr><td valign="top"></td><td valign="top"><em>slant</em>&nbsp;</td><td>The slant of the logical font, can be one of the values:<ul><li>FONT_SLANT_ALL<br> Any one.</li><li>FONT_SLANT_ROMAN<br> Regular font.</li><li>FONT_SLANT_ITALIC<br> Italic font. </li></ul></td></tr>    <tr><td valign="top"></td><td valign="top"><em>flip</em>&nbsp;</td><td>Does flip the glyph of the font, can be one of the following values:<ul><li>FONT_FLIP_NIL<br> Do not flip the glyph.</li><li>FONT_FLIP_HORZ<br> Flip the glyph horizontally .</li><li>FONT_FLIP_VERT<br> Flip the glyph vertically.</li><li>FONT_FLIP_HORZVERT<br> Flip the glyph horizontally and vertically. </li></ul></td></tr>    <tr><td valign="top"></td><td valign="top"><em>other</em>&nbsp;</td><td>Other rendering features, can be one of the following values:<ul><li>FONT_OTHER_NIL<br> Not specified.</li><li>FONT_OTHER_AUTOSCALE<br> Auto scale the bitmap glyph to match the desired font size.</li><li>FONT_OTHER_TTFNOCACHE<br> Do not use cache when using TrueType font.</li><li>FONT_OTHER_TTFKERN<br> Kern the glyph when using TrueType font.</li><li>FONT_OTHER_TTFNOCACHEKERN<br> When using TrueType font, kern the glyph and do not use cache.</li><li>FONT_OTHER_LCDPORTRAIT<br> When using TrueType font and sub-pixels smoothing strategy, set lcd portrait and do not use kern the glyph.</li><li>FONT_OTHER_LCDPORTRAITKERN<br> When using TrueType font and sub-pixels smoothing strategy, set lcd portrait and use kern the glyph. </li></ul></td></tr>    <tr><td valign="top"></td><td valign="top"><em>underline</em>&nbsp;</td><td>The underline of the logical font, can be one of the values:<ul><li>FONT_UNDERLINE_ALL<br> Any one.</li><li>FONT_UNDERLINE_LINE<br> With underline.</li><li>FONT_UNDERLINE_NONE<br> Without underline. </li></ul></td></tr>    <tr><td valign="top"></td><td valign="top"><em>struckout</em>&nbsp;</td><td>The struckout line of the logical font, can be one of the values:<ul><li>FONT_STRUCKOUT_ALL<br> Any one.</li><li>FONT_STRUCKOUT_LINE<br> With struckout line.</li><li>FONT_STRUCKOUT_NONE<br> Without struckout line. </li></ul></td></tr>    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>The size, i.e. the height, of the logical font. Note that the size of the created logical font may be different from the size expected. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>rotation</em>&nbsp;</td><td>The rotation of the logical font, it is in units of tenth degrees. Note that you can specify rotation only for TrueType and Adobe Type1 fonts. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The pointer to the logical font created, NULL on error.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__font__fns.htm#ga15">CreateLogFontIndirect</a>, <a class="el" href="group__font__fns.htm#ga14">CreateLogFontByName</a>, <a class="el" href="group__font__fns.htm#ga19">SelectFont</a></dd></dl>Example:<p><div class="fragment"><pre class="fragment">    <span class="keyword">static</span> <a class="code" href="struct__LOGFONT.htm">LOGFONT</a>  *logfont, *logfontgb12, *logfontbig24;            logfont = <a class="code" href="group__font__fns.htm#ga13">CreateLogFont</a> (<a class="code" href="group__simple__types.htm#ga3">NULL</a>, <span class="stringliteral">"SansSerif"</span>, <span class="stringliteral">"ISO8859-1"</span>,                         FONT_WEIGHT_REGULAR, FONT_SLANT_ITALIC, FONT_SETWIDTH_NORMAL,                        FONT_SPACING_CHARCELL, FONT_UNDERLINE_NONE, FONT_STRUCKOUT_LINE,                         16, 0);            logfontgb12 = <a class="code" href="group__font__fns.htm#ga13">CreateLogFont</a> (<a class="code" href="group__simple__types.htm#ga3">NULL</a>, <span class="stringliteral">"song"</span>, <span class="stringliteral">"GB2312"</span>,                         FONT_WEIGHT_REGULAR, FONT_SLANT_ROMAN, FONT_SETWIDTH_NORMAL,                        FONT_SPACING_CHARCELL, FONT_UNDERLINE_LINE, FONT_STRUCKOUT_LINE,                         12, 0);            logfontbig24 = <a class="code" href="group__font__fns.htm#ga13">CreateLogFont</a> (<a class="code" href="group__simple__types.htm#ga3">NULL</a>, <span class="stringliteral">"ming"</span>, <span class="stringliteral">"BIG5"</span>, 

⌨️ 快捷键说明

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