ft2-outline_processing.html

来自「嵌入式freetype库的应用文档包含freetype的简要说明和应用examp」· HTML 代码 · 共 838 行 · 第 1/3 页

HTML
838
字号
<tr valign=top><td><b>yOffset</b></td><td><p>The vertical offset.</p></td></tr></table></td></tr></table></td></tr></table><hr width="75%"><table align=center width="75%"><tr><td><h4><a name="FT_Outline_Transform">FT_Outline_Transform</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  FT_EXPORT( <span class="keyword">void</span> )  <b>FT_Outline_Transform</b>( <span class="keyword">const</span> <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline,                        <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Matrix">FT_Matrix</a>*   matrix );</pre></table><br><table align=center width="87%"><tr><td><p>Applies a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping, etc.</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>outline</b></td><td><p>A pointer to the target outline descriptor.</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>matrix</b></td><td><p>A pointer to the transformation matrix.</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td><p>You can use FT_Outline_Translate() if you need to translate the outline's points.</p></td></tr></table></td></tr></table><hr width="75%"><table align=center width="75%"><tr><td><h4><a name="FT_Outline_Embolden">FT_Outline_Embolden</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  FT_EXPORT_DEF( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )  <b>FT_Outline_Embolden</b>( <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline,                       <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>       strength );</pre></table><br><table align=center width="87%"><tr><td><p>Emboldens an outline. The new outline will be at most 4 times `strength' pixels wider and higher. You may think of the left and bottom borders as unchanged.</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>outline</b></td><td><p>A handle to the target outline.</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>strength</b></td><td><p>How strong the glyph is emboldened. Expressed in 26.6 pixel format.</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_Outline_Reverse">FT_Outline_Reverse</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  FT_EXPORT( <span class="keyword">void</span> )  <b>FT_Outline_Reverse</b>( <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline );</pre></table><br><table align=center width="87%"><tr><td><p>Reverses the drawing direction of an outline. This is used to ensure consistent fill conventions for mirrored glyphs.</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>outline</b></td><td><p>A pointer to the target outline descriptor.</p></td></tr></table></td></tr></table><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td><p>This functions toggles the bit flag `FT_OUTLINE_REVERSE_FILL' in the outline's `flags' field.</p><p>It shouldn't be used by a normal client application, unless it knows what it is doing.</p></td></tr></table></td></tr></table><hr width="75%"><table align=center width="75%"><tr><td><h4><a name="FT_Outline_Check">FT_Outline_Check</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_Outline_Check</b>( <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline );</pre></table><br><table align=center width="87%"><tr><td><p>Check the contents of an outline descriptor.</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>outline</b></td><td><p>A handle to a source outline.</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_Outline_Get_BBox">FT_Outline_Get_BBox</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_Outline_Get_BBox</b>( <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline,                       <a href="ft2-basic_types.html#FT_BBox">FT_BBox</a>     *abbox );</pre></table><br><table align=center width="87%"><tr><td><p>Computes the exact bounding box of an outline. This is slower than computing the control box. However, it uses an advanced algorithm which returns <i>very</i> quickly when the two boxes coincide. Otherwise, the outline Bezier arcs are walked over to extract their extrema.</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>outline</b></td><td><p>A pointer to the source outline.</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>abbox</b></td><td><p>The outline's exact bounding box.</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_outline_flags">ft_outline_flags</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_none</a>             <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_NONE</a>#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_owner</a>            <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_OWNER</a>#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_even_odd_fill</a>    <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_EVEN_ODD_FILL</a>#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_reverse_fill</a>     <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_REVERSE_FILL</a>#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_ignore_dropouts</a>  <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_IGNORE_DROPOUTS</a>#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_high_precision</a>   <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_HIGH_PRECISION</a>#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_single_pass</a>      <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_SINGLE_PASS</a></pre></table><br><table align=center width="87%"><tr><td><p>These constants are deprecated. Please use the corresponding <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_FLAGS</a> values.</p></td></tr></table><br><table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td><table cellpadding=3><tr valign=top><td><b>ft_outline_none</b></td><td><p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_NONE</a>.</p></td></tr><tr valign=top><td><b>ft_outline_owner</b></td><td><p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_OWNER</a>.</p></td></tr><tr valign=top><td><b>ft_outline_even_odd_fill</b></td><td><p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_EVEN_ODD_FILL</a>.</p></td></tr><tr valign=top><td><b>ft_outline_reverse_fill</b></td><td><p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_REVERSE_FILL</a>.</p></td></tr><tr valign=top><td><b>ft_outline_ignore_dropouts</b></td><td><p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_IGNORE_DROPOUTS</a>.</p></td></tr><tr valign=top><td><b>ft_outline_high_precision</b></td><td><p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_HIGH_PRECISION</a>.</p></td></tr><tr valign=top><td><b>ft_outline_single_pass</b></td><td><p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_SINGLE_PASS</a>.</p></td></tr></table></td></tr></table></td></tr></table><hr width="75%"><table align=center width="75%"><tr><td><h4><a name="FT_Outline_MoveToFunc">FT_Outline_MoveToFunc</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  <span class="keyword">typedef</span> <span class="keyword">int</span>  (*<b>FT_Outline_MoveToFunc</b>)( <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  to,                            <span class="keyword">void</span>*       user );#define FT_Outline_MoveTo_Func  <b>FT_Outline_MoveToFunc</b></pre></table><br><table align=center width="87%"><tr><td><p>A function pointer type used to describe the signature of a `move to' function during outline walking/decomposition.</p><p>A `move to' is emitted to start a new contour in an outline.</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>to</b></td><td><p>A pointer to the target point of the `move to'.</p></td></tr><tr valign=top><td><b>user</b></td><td><p>A typeless pointer which is passed from the caller of the decomposition function.</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>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_Outline_LineToFunc">FT_Outline_LineToFunc</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  <span class="keyword">typedef</span> <span class="keyword">int</span>  (*<b>FT_Outline_LineToFunc</b>)( <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  to,                            <span class="keyword">void</span>*       user );#define  FT_Outline_LineTo_Func  <b>FT_Outline_LineToFunc</b></pre></table><br><table align=center width="87%"><tr><td><p>A function pointer type used to describe the signature of a `line to' function during outline walking/decomposition.</p><p>A `line to' is emitted to indicate a segment in the outline.</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>to</b></td><td><p>A pointer to the target point of the `line to'.</p></td></tr><tr valign=top><td><b>user</b></td><td><p>A typeless pointer which is passed from the caller of the decomposition function.</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>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_Outline_ConicToFunc">FT_Outline_ConicToFunc</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  <span class="keyword">typedef</span> <span class="keyword">int</span>  (*<b>FT_Outline_ConicToFunc</b>)( <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  control,                             <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  to,                             <span class="keyword">void</span>*       user );#define  FT_Outline_ConicTo_Func  <b>FT_Outline_ConicToFunc</b></pre></table><br><table align=center width="87%"><tr><td><p>A function pointer type use to describe the signature of a `conic to' function during outline walking/decomposition.</p><p>A `conic to' is emitted to indicate a second-order Bezier arc in the outline.</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>control</b></td><td><p>An intermediate control point between the last position and the new target in `to'.</p></td></tr><tr valign=top><td><b>to</b></td><td><p>A pointer to the target end point of the conic arc.</p></td></tr><tr valign=top><td><b>user</b></td><td><p>A typeless pointer which is passed from the caller of the decomposition function.</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>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_Outline_CubicToFunc">FT_Outline_CubicToFunc</a></h4><table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>  <span class="keyword">typedef</span> <span class="keyword">int</span>  (*<b>FT_Outline_CubicToFunc</b>)( <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  control1,

⌨️ 快捷键说明

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