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

📄 ft2-multiple_masters.html

📁 嵌入式freetype库的应用文档包含freetype的简要说明和应用example
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>num_axis</b></td><td><p>The number of axes. The maximum value is 4 for MM; no limit in GX.</p></td></tr><tr valign=top><td><b>num_designs</b></td><td><p>The number of designs; should be normally 2^num_axis for MM fonts. Not meaningful for GX (where every glyph could have a different number of designs).</p></td></tr><tr valign=top><td><b>num_namedstyles</b></td><td><p>The number of named styles; only meaningful for GX which allows certain design coordinates to have a string ID (in the `name' table) associated with them. The font can tell the user that, for example, Weight=1.5 is `Bold'.</p></td></tr><tr valign=top><td><b>axis</b></td><td><p>A table of axis descriptors. GX fonts contain slightly more data than MM.</p></td></tr><tr valign=top><td><b>namedstyles</b></td><td><p>A table of named styles. Only meaningful with GX.</p></td></tr></table></td></tr></table></td></tr></table><hr width="75%"><table align=center width="75%"><tr><td><h4><a name="FT_Get_Multi_Master">FT_Get_Multi_Master</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )  <b>FT_Get_Multi_Master</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>           face,                       <a href="ft2-multiple_masters.html#FT_Multi_Master">FT_Multi_Master</a>  *amaster );</pre></table><br><table align=center width="87%"><tr><td><p>Retrieves the Multiple Master descriptor of a given font.</p><p>This function can't be used with GX fonts.</p></td></tr></table><br><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>face</b></td><td><p>A handle to the source face.</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>amaster</b></td><td><p>The Multiple Masters descriptor.</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td><p>FreeType error code. 0 means success.</p></td></tr></table></td></tr></table><hr width="75%"><table align=center width="75%"><tr><td><h4><a name="FT_Get_MM_Var">FT_Get_MM_Var</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )  <b>FT_Get_MM_Var</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>      face,                 <a href="ft2-multiple_masters.html#FT_MM_Var">FT_MM_Var</a>*  *amaster );</pre></table><br><table align=center width="87%"><tr><td><p>Retrieves the Multiple Master/GX var descriptor of a given font.</p></td></tr></table><br><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>face</b></td><td><p>A handle to the source face.</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>amaster</b></td><td><p>The Multiple Masters descriptor. Allocates a data structure, which the user must free (a single call to FT_FREE will do it).</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td><p>FreeType error code. 0 means success.</p></td></tr></table></td></tr></table><hr width="75%"><table align=center width="75%"><tr><td><h4><a name="FT_Set_MM_Design_Coordinates">FT_Set_MM_Design_Coordinates</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )  <b>FT_Set_MM_Design_Coordinates</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>   face,                                <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>   num_coords,                                <a href="ft2-basic_types.html#FT_Long">FT_Long</a>*  coords );</pre></table><br><table align=center width="87%"><tr><td><p>For Multiple Masters fonts, choose an interpolated font design through design coordinates.</p><p>This function can't be used with GX fonts.</p></td></tr></table><br><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>face</b></td><td><p>A handle to the source face.</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>num_coords</b></td><td><p>The number of design coordinates (must be equal to the number of axes in the font).</p></td></tr><tr valign=top><td><b>coords</b></td><td><p>An array of design coordinates.</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td><p>FreeType error code. 0 means success.</p></td></tr></table></td></tr></table><hr width="75%"><table align=center width="75%"><tr><td><h4><a name="FT_Set_Var_Design_Coordinates">FT_Set_Var_Design_Coordinates</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )  <b>FT_Set_Var_Design_Coordinates</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>    face,                                 <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>    num_coords,                                 <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>*  coords );</pre></table><br><table align=center width="87%"><tr><td><p>For Multiple Master or GX Var fonts, choose an interpolated font design through design coordinates.</p></td></tr></table><br><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>face</b></td><td><p>A handle to the source face.</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>num_coords</b></td><td><p>The number of design coordinates (must be equal to the number of axes in the font).</p></td></tr><tr valign=top><td><b>coords</b></td><td><p>An array of design coordinates.</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td><p>FreeType error code. 0 means success.</p></td></tr></table></td></tr></table><hr width="75%"><table align=center width="75%"><tr><td><h4><a name="FT_Set_MM_Blend_Coordinates">FT_Set_MM_Blend_Coordinates</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )  <b>FT_Set_MM_Blend_Coordinates</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>    face,                               <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>    num_coords,                               <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>*  coords );</pre></table><br><table align=center width="87%"><tr><td><p>For Multiple Masters and GX var fonts, choose an interpolated font design through normalized blend coordinates.</p></td></tr></table><br><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>face</b></td><td><p>A handle to the source face.</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>num_coords</b></td><td><p>The number of design coordinates (must be equal to the number of axes in the font).</p></td></tr><tr valign=top><td><b>coords</b></td><td><p>The design coordinates array (each element must be between 0 and 1.0).</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td><p>FreeType error code. 0 means success.</p></td></tr></table></td></tr></table><hr width="75%"><table align=center width="75%"><tr><td><h4><a name="FT_Set_Var_Blend_Coordinates">FT_Set_Var_Blend_Coordinates</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )  <b>FT_Set_Var_Blend_Coordinates</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>    face,                                <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>    num_coords,                                <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>*  coords );</pre></table><br><table align=center width="87%"><tr><td><p>This is another name of <a href="ft2-multiple_masters.html#FT_Set_MM_Blend_Coordinates">FT_Set_MM_Blend_Coordinates</a>.</p></td></tr></table><br></td></tr></table><hr width="75%"></body></html>

⌨️ 快捷键说明

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