class Freetype::Outline
- Freetype::Outline
- Reference
- Object
Overview
FT_Outline wrapper.
This structure is used to describe an outline to the scan-line converter.
Defined in:
freetype/outline.crConstructors
Instance Method Summary
- #bbox
- #cbox
- #contours
-
#decompose(context = nil, move_to = nil, line_to = nil, conic_to = nil, cubic_to = nil, shift = 0, delta = 0)
Decompose the outline into a sequence of move, line, conic, and cubic segments.
- #flags
- #inside_border
- #n_contours
- #n_points
- #outline : LibFreetype::FT_Outline
- #outside_border
- #points
- #tags
Constructor Detail
Instance Method Detail
Decompose the outline into a sequence of move, line, conic, and cubic segments.
context
: Arbitrary contextual object which will be passed as
the last parameter of all callbacks. Typically an
object to be drawn to, but can be anything.
move_to
: Callback which will be passed an FT_Vector
control point and the context. Called when outline
needs to jump to a new path component.
line_to
: Callback which will be passed an FT_Vector
control point and the context. Called to draw a
straight line from the current position to the
control point.
conic_to
: Callback which will be passed two FT_Vector
control points and the context. Called to draw a
second-order Bézier curve from the current
position using the passed control points.
curve_to
: Callback which will be passed three FT_Vector
control points and the context. Called to draw a
third-order Bézier curve from the current position
using the passed control points.
shift
: Passed to FreeType which will transform vectors via
x = (x << shift) - delta
and y = (y << shift) - delta
delta
: Passed to FreeType which will transform vectors via
x = (x << shift) - delta
and y = (y << shift) - delta