ftstroke.h File Reference

#include <ft2build.h>

Go to the source code of this file.

Typedefs

typedef typedefFT_BEGIN_HEADER
struct FT_StrokerRec_
FT_Stroker
typedef enum FT_Stroker_LineJoin_ FT_Stroker_LineJoin
typedef enum FT_Stroker_LineCap_ FT_Stroker_LineCap
typedef enum FT_StrokerBorder_ FT_StrokerBorder

Enumerations

enum  FT_Stroker_LineJoin_
enum  FT_Stroker_LineCap_
enum  FT_StrokerBorder_

Functions

 FT_Outline_GetInsideBorder (FT_Outline *outline)
 FT_Outline_GetOutsideBorder (FT_Outline *outline)
 FT_Stroker_New (FT_Library library, FT_Stroker *astroker)
 FT_Stroker_Set (FT_Stroker stroker, FT_Fixed radius, FT_Stroker_LineCap line_cap, FT_Stroker_LineJoin line_join, FT_Fixed miter_limit)
 FT_Stroker_Rewind (FT_Stroker stroker)
 FT_Stroker_ParseOutline (FT_Stroker stroker, FT_Outline *outline, FT_Bool opened)
 FT_Stroker_BeginSubPath (FT_Stroker stroker, FT_Vector *to, FT_Bool open)
 FT_Stroker_EndSubPath (FT_Stroker stroker)
 FT_Stroker_LineTo (FT_Stroker stroker, FT_Vector *to)
 FT_Stroker_ConicTo (FT_Stroker stroker, FT_Vector *control, FT_Vector *to)
 FT_Stroker_CubicTo (FT_Stroker stroker, FT_Vector *control1, FT_Vector *control2, FT_Vector *to)
 FT_Stroker_GetBorderCounts (FT_Stroker stroker, FT_StrokerBorder border, FT_UInt *anum_points, FT_UInt *anum_contours)
 FT_Stroker_ExportBorder (FT_Stroker stroker, FT_StrokerBorder border, FT_Outline *outline)
 FT_Stroker_GetCounts (FT_Stroker stroker, FT_UInt *anum_points, FT_UInt *anum_contours)
 FT_Stroker_Export (FT_Stroker stroker, FT_Outline *outline)
 FT_Stroker_Done (FT_Stroker stroker)
 FT_Glyph_Stroke (FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool destroy)
 FT_Glyph_StrokeBorder (FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool inside, FT_Bool destroy)


Typedef Documentation

typedef typedefFT_BEGIN_HEADER struct FT_StrokerRec_* FT_Stroker

Definition at line 60 of file ftstroke.h.

typedef enum FT_Stroker_LineCap_ FT_Stroker_LineCap

typedef enum FT_Stroker_LineJoin_ FT_Stroker_LineJoin

typedef enum FT_StrokerBorder_ FT_StrokerBorder


Enumeration Type Documentation

enum FT_Stroker_LineCap_

Definition at line 118 of file ftstroke.h.

enum FT_Stroker_LineJoin_

Definition at line 87 of file ftstroke.h.

enum FT_StrokerBorder_

Definition at line 152 of file ftstroke.h.


Function Documentation

FT_Glyph_Stroke ( FT_Glyph pglyph,
FT_Stroker  stroker,
FT_Bool  destroy 
)

Definition at line 1882 of file ftstroke.c.

References FT_GlyphRec_::clazz, copy(), error, FALSE, FT_Done_Glyph(), FT_Glyph_Copy(), FT_Outline_Done(), FT_OUTLINE_GLYPH_CLASS_GET, FT_Outline_New(), FT_Stroker_Export(), FT_Stroker_GetCounts(), FT_Stroker_ParseOutline(), FT_UNUSED, FT_GlyphRec_::library, FT_Outline_::n_contours, FT_Outline_::n_points, NULL, FT_OutlineGlyphRec_::outline, and void.

FT_Glyph_StrokeBorder ( FT_Glyph pglyph,
FT_Stroker  stroker,
FT_Bool  inside,
FT_Bool  destroy 
)

Definition at line 1955 of file ftstroke.c.

References border, FT_GlyphRec_::clazz, copy(), error, FALSE, FT_Done_Glyph(), FT_Glyph_Copy(), FT_Outline_Done(), FT_Outline_GetOutsideBorder(), FT_OUTLINE_GLYPH_CLASS_GET, FT_Outline_New(), FT_STROKER_BORDER_LEFT, FT_STROKER_BORDER_RIGHT, FT_Stroker_ExportBorder(), FT_Stroker_GetBorderCounts(), FT_Stroker_ParseOutline(), FT_UNUSED, FT_GlyphRec_::library, FT_Outline_::n_contours, FT_Outline_::n_points, NULL, FT_OutlineGlyphRec_::outline, and void.

FT_Outline_GetInsideBorder ( FT_Outline outline  ) 

Definition at line 31 of file ftstroke.c.

References FT_ORIENTATION_TRUETYPE, FT_Outline_Get_Orientation(), FT_STROKER_BORDER_LEFT, FT_STROKER_BORDER_RIGHT, and o.

FT_Outline_GetOutsideBorder ( FT_Outline outline  ) 

Definition at line 44 of file ftstroke.c.

References FT_ORIENTATION_TRUETYPE, FT_Outline_Get_Orientation(), FT_STROKER_BORDER_LEFT, FT_STROKER_BORDER_RIGHT, and o.

Referenced by FT_Glyph_StrokeBorder().

FT_Stroker_BeginSubPath ( FT_Stroker  stroker,
FT_Vector to,
FT_Bool  open 
)

Definition at line 1406 of file ftstroke.c.

References TRUE.

Referenced by FT_Stroker_ParseOutline().

FT_Stroker_ConicTo ( FT_Stroker  stroker,
FT_Vector control,
FT_Vector to 
)

Definition at line 1198 of file ftstroke.c.

References error, FALSE, FT_Angle, FT_Angle_Diff(), FT_Bool, ft_conic_is_small_enough(), ft_conic_split(), FT_Cos(), FT_DivFix(), FT_SIDE_TO_ROTATE, ft_stroke_border_conicto(), ft_stroker_process_corner(), ft_stroker_subpath_start(), FT_Vector_From_Polar(), length, phi, rotate, theta, TRUE, FT_Vector_::x, and FT_Vector_::y.

Referenced by FT_Stroker_ParseOutline().

FT_Stroker_CubicTo ( FT_Stroker  stroker,
FT_Vector control1,
FT_Vector control2,
FT_Vector to 
)

Definition at line 1296 of file ftstroke.c.

References error, FALSE, FT_Angle, FT_Bool, FT_Cos(), ft_cubic_is_small_enough(), ft_cubic_split(), FT_DivFix(), ft_pos_abs(), FT_SIDE_TO_ROTATE, ft_stroke_border_cubicto(), ft_stroker_process_corner(), ft_stroker_subpath_start(), FT_Vector_From_Polar(), RootCsg::length2(), rotate, TRUE, FT_Vector_::x, and FT_Vector_::y.

Referenced by FT_Stroker_ParseOutline().

FT_Stroker_Done ( FT_Stroker  stroker  ) 

Definition at line 776 of file ftstroke.c.

References FT_FREE, ft_stroke_border_done(), and NULL.

FT_Stroker_EndSubPath ( FT_Stroker  stroker  ) 

Definition at line 1492 of file ftstroke.c.

References error, FALSE, FT_Angle, FT_Angle_Diff(), FT_ANGLE_PI, ft_stroke_border_close(), ft_stroker_add_reverse_left(), ft_stroker_cap(), ft_stroker_inside(), FT_Stroker_LineTo(), ft_stroker_outside(), and TRUE.

Referenced by FT_Stroker_ParseOutline().

FT_Stroker_Export ( FT_Stroker  stroker,
FT_Outline outline 
)

Definition at line 1658 of file ftstroke.c.

References FT_STROKER_BORDER_LEFT, FT_STROKER_BORDER_RIGHT, and FT_Stroker_ExportBorder().

Referenced by FT_Glyph_Stroke().

FT_Stroker_ExportBorder ( FT_Stroker  stroker,
FT_StrokerBorder  border,
FT_Outline outline 
)

Definition at line 1639 of file ftstroke.c.

References ft_stroke_border_export(), FT_STROKER_BORDER_LEFT, FT_STROKER_BORDER_RIGHT, and FT_StrokeBorderRec_::valid.

Referenced by FT_Glyph_StrokeBorder(), and FT_Stroker_Export().

FT_Stroker_GetBorderCounts ( FT_Stroker  stroker,
FT_StrokerBorder  border,
FT_UInt anum_points,
FT_UInt anum_contours 
)

Definition at line 1576 of file ftstroke.c.

References error, and ft_stroke_border_get_counts().

Referenced by FT_Glyph_StrokeBorder().

FT_Stroker_GetCounts ( FT_Stroker  stroker,
FT_UInt anum_points,
FT_UInt anum_contours 
)

Definition at line 1607 of file ftstroke.c.

References error, and ft_stroke_border_get_counts().

Referenced by FT_Glyph_Stroke().

FT_Stroker_LineTo ( FT_Stroker  stroker,
FT_Vector to 
)

Definition at line 1135 of file ftstroke.c.

References border, error, FT_Angle, FT_ANGLE_PI2, FT_Atan2(), ft_stroke_border_lineto(), ft_stroker_process_corner(), ft_stroker_subpath_start(), FT_Vector_From_Polar(), TRUE, POINT::x, FT_Vector_::x, POINT::y, and FT_Vector_::y.

Referenced by FT_Stroker_EndSubPath(), and FT_Stroker_ParseOutline().

FT_Stroker_New ( FT_Library  library,
FT_Stroker astroker 
)

Definition at line 717 of file ftstroke.c.

References error, FT_NEW, ft_stroke_border_init(), and FT_StrokerRec_::library.

FT_Stroker_ParseOutline ( FT_Stroker  stroker,
FT_Outline outline,
FT_Bool  opened 
)

Definition at line 1673 of file ftstroke.c.

References error, FT_CURVE_TAG, FT_CURVE_TAG_CONIC, FT_CURVE_TAG_CUBIC, FT_CURVE_TAG_ON, FT_Stroker_BeginSubPath(), FT_Stroker_ConicTo(), FT_Stroker_CubicTo(), FT_Stroker_EndSubPath(), FT_Stroker_LineTo(), FT_Stroker_Rewind(), n, POINT::x, FT_Vector_::x, POINT::y, and FT_Vector_::y.

Referenced by FT_Glyph_Stroke(), and FT_Glyph_StrokeBorder().

FT_Stroker_Rewind ( FT_Stroker  stroker  ) 

Definition at line 763 of file ftstroke.c.

References ft_stroke_border_reset().

Referenced by FT_Stroker_ParseOutline(), and FT_Stroker_Set().

FT_Stroker_Set ( FT_Stroker  stroker,
FT_Fixed  radius,
FT_Stroker_LineCap  line_cap,
FT_Stroker_LineJoin  line_join,
FT_Fixed  miter_limit 
)

Definition at line 745 of file ftstroke.c.

References FT_Stroker_Rewind().


Generated on Tue Jul 5 15:58:19 2011 for ROOT_528-00b_version by  doxygen 1.5.1